Undefined offset notices
| From: | Shawn McKenzie | Date: | Thu, 20 Feb 2003 05:54:51 +0000 |
| Subject: | Undefined offset notices | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-136312@lists.php.net to get a copy of this message | ||
While debugging my code, that seems to work fine, I see hundreds of these
notices, many different ones with different offset numbers same line number.
(I know I can turn notices off)
Notice: Undefined offset: 2 in
D:\apps\www\test\themes\Family\includes\autotheme.inc.php on line 275
I would like to know what the notice pertains to (offset?) Here's the code:
$commands is an associative array, $tmpparts and $tmpcmds are integer index
arrays.
$i = 0; // Line 270
while($i != count($tmpparts)) {
$content = "?>".$tmpparts[$i];
eval($content);
foreach($command as $name => $cmds) {
if($tmpcmds[$i] == $name) {
$docmd = $cmds;
eval($docmd);
}
}
$i++;
} // Line 281
TIA,
Shawn