note 44165 added to control-structures.foreach
| From: | geq at cqsoft dot com dot ar | Date: | Fri, 16 Jul 2004 12:38:52 +0000 |
| Subject: | note 44165 added to control-structures.foreach | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-73384@lists.php.net to get a copy of this message | ||
The function foreach prints the next message:
Invalid argument supplied for foreach() in ...
Whats this? The foreach sintax is ok. For example:
foreach($a_configuracion as $linea) {
$lpart = explode("|", $linea);
if(eregi($lpart[0], $config)) {
$result = $lpart[1];
}
}
where a_configuracion is an loaded file using file(). I want to do what I can to do to resolve this
trouble.
Tanks & greetings!
GABRIEL
----
Manual Page -- http://www.php.net/manual/en/control-structures.foreach.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+44165
Delete -- http://master.php.net/manage/user-notes.php?action=delete+44165&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+44165&report=yes
Search -- http://master.php.net/manage/user-notes.php