|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-25 15:08 UTC] sniper@php.net
[2003-11-25 15:38 UTC] iliaa@php.net
[2003-11-25 17:43 UTC] james at gogo dot co dot nz
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 10:00:01 2025 UTC |
Description: ------------ Using isset to test for the existance of an array index on a non array (in this case string '4') returns true, when plainly, $foo has no element indexed 'bar'; Reproduce code: --------------- <?php $foo = '4'; if(isset($foo['bar'])) { echo "Uh Oh"; } else { echo "S'all Good"; } ?> Expected result: ---------------- S'all Good Actual result: -------------- Uh Oh