PHP shows deprecated:assigning The return value of the ' new by reference was deprecated in solution
When you imported Excel content to the database with Spreadsheet_excel_reader last night, the following prompts appear:
Deprecated:assigning The return value of new by reference is deprecated in
Navigate to the line that went wrong:
[PHP] View plaincopyprint?
$this->_ole =& New Oleread ();
My local environment is made of php/5.3.3.
Solution: php5.3 started, abolished the "=&" symbol in PHP, so want to copy, directly with = reference can. Details are as follows:
1, PHP5 object replication is the use of the way of reference;
2. If you do not use the reference method, you need to add the keyword clone when copying the object;
3, if in the process of copying, at the same time to change some attributes, then increase the function _clone ();
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/webkf/PHP/