Posted by Toby A Inkster on 05/02/07 12:16
Jerry Stuckle wrote:
> Yes, but I'm not sure why the isset would give you a warning.
I think isset($array['key']) issues a *notice* under PHP 5 when the key
doesn't exist in the array. (And returns FALSE.)
I suppose internally PHP finds the key in the array *before* it calls the
isset() function, so the E_NOTICE is raised before isset() is called.
--
Toby A Inkster BSc (Hons) ARCS
http://tobyinkster.co.uk/
Geek of ~ HTML/SQL/Perl/PHP/Python/Apache/Linux
Navigation:
[Reply to this message]
|