note 44165 rejected from control-structures.foreach by tularis

From: Date: Fri, 16 Jul 2004 12:42:18 +0000
Subject: note 44165 rejected from control-structures.foreach by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-73385@lists.php.net to get a copy of this message
Note Submitter: geq@cqsoft.com.ar ---- 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

« previous php.notes (#73385) next »