如何从ajax响应中获得不同in中的不同变量值。
在我的编程中,从test.php文件中获取所有响应,但是我希望对这两个变量都有不同的响应。
Index.php文件:-
<html>
<span> Picture : </span>
<!-- In picture hint i want to print $varbilefirst value from test.php file -->
<span id="picturehintget"></span>
<inp
最近,我读了几篇关于PHP面向对象编程的文章,遇到了这样的情况:
class a {}
$temp = new a();
$temp->newfiled = 20; // This field is not present within the class
以上代码在PHP5.3中运行良好。
为什么剂量PHP抛出一个错误?我来自Java背景,在这个背景中,我们只能使用在类中定义的字段。
更新:编辑了php.ini到error_reporting = E_ALL = E_STRICT,但是它继续隐藏错误。
也是的一个特性吗?