Undefined offset
Posted: Thu Jun 26, 2003 3:41 am
what does undefined offset mean??
it's on the line below. (part of an xml parser)
$depth[$parser]++;
it's on the line below. (part of an xml parser)
$depth[$parser]++;
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$arr = array('a'=>'A', 'b'=>'B');
echo $arr['z'];Code: Select all
class MyClass
{
// fill me with something useful if you must
}
$obj = new MyClass;
$dh = opendir('.');
$parser = xml_parser_create();
$arr = array($obj=>"doesn't work", $dh=>'this neither', $parser=>'bad luck again');
print_r($arr);Code: Select all
<html><body>
<pre><?php
error_reporting(E_ALL);
ini_set('display_errors', true);
$arr = array();
$arr[0]++;
print_r($arr);
?></pre>
</body></html>