|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-03-01 22:32 UTC] yohgaki@php.net
[2002-03-02 06:04 UTC] derick@php.net
[2002-03-02 06:42 UTC] yohgaki@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 16:00:02 2025 UTC |
4.0..x does not raise error, but 4.1.x does. <?php error_reporting(E_ALL); class testclass { var $dd = ""; } $test = new testclass(); if (isset($test->dd[0])){ echo "(A) TRUE \n"; }else{ echo "(A) FALSE \n"; } if (is_array($test->dd) && isset($test->dd[0])){ echo "(B) TRUE \n"; }else{ echo "(B) FALSE \n"; } ?>