这个简单的PHP代码段无法回显Sub testHelperSubToBeCalledFromInterop
Call Sheet1.testThisMacro_s
End Sub
属性。
date
结果
<?php
$date_time = new DateTime;
echo $date_time->date;
如果我添加PHP Notice: Undefined property: DateTime::$date in /tmp/fiddle.php on line 5
语句,则可以:
print_r()
结果
<?php
$date_time = new DateTime; print_r($date_time);
echo $date_time->date;
为什么PHP会这样做?