已弃用:调用时传递引用已被弃用 [英] Deprecated: Call-time pass-by-reference has been deprecated in

查看:96
本文介绍了已弃用:调用时传递引用已被弃用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于此错误/警告,php 5.3.5 中 settype() 的最佳替代品是什么

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

已弃用:通话时间不推荐使用传递引用在C:\xampp\htdocs\MyWebInterface\includes\payroll_cutoff.inc.php在线 217

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

推荐答案

settype() 尚未弃用.在调用时按引用传递已被弃用.您可能只想删除 settype() 调用的第一个参数前面的与号.

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.

这篇关于已弃用:调用时传递引用已被弃用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆