Deprecated: Call-time pass-by-reference has been deprecated in

帅比萌擦擦* 提交于 2019-12-13 09:45:41

问题


what is the best substitute for settype() in php 5.3.5 due to this error/warnings

Deprecated: Call-time pass-by-reference has been deprecated in C:\xampp\htdocs\MyWebInterface\includes\payroll_cutoff.inc.php on line 217


回答1:


settype() hasn't been deprecated. Passing by reference at call time has been deprecated. You probably just want to remove the ampersand from in front of the first parameter to your settype() call.

That would be easier to tell for sure if you actually posted your code...

See the manual for more information on references in general, and passing by reference and the deprecation of references in function calls in particular.



来源:https://stackoverflow.com/questions/6276451/deprecated-call-time-pass-by-reference-has-been-deprecated-in

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!