RE: [PHP] what's "undefined index" ?
| From: | Martin Towell | Date: | Tue, 26 Mar 2002 00:46:28 +0000 |
| Subject: | RE: [PHP] what's "undefined index" ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-90126@lists.php.net to get a copy of this message | ||
Just a follow up - I've been doing some debugging of my own code and here
are the three different errors to do with undefined varariables:
Undefined variable - variable not set/declared
Undefined offset - numeric index doesn't exist
Undefined index - alphanumeric index doesn't exist
(I may have missed out on one/some)
I didn't think about "offset" with I sent my first reply to this thread....
Hope that helps someone
Martin
-----Original Message-----
From: Kai Schaetzl [mailto:maillists@conactive.com]
Sent: Tuesday, March 26, 2002 11:32 AM
To: php-general@lists.php.net
Subject: Re: [PHP] what's "undefined index" ?
Your message of Mon, 25 Mar 2002 09:39:06 -0700:
> The error message refers to the "KundeRemark" in $val["KundeRemark"], not
> "$KundeRemark" which you are trying to assign the result to. The former
is
> (if it existed) an index, the latter is a variable.
>
Oh, yeah, I see. Stupid me. Thanks!
Kai
--
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com
IE-Center: http://ie5.de & http://msie.winware.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php