Re: PHP equivalent of "foreach"
| From: | Adam Charnock | Date: | Sat, 20 May 2000 12:02:25 +0000 |
| Subject: | Re: PHP equivalent of "foreach" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-230@lists.php.net to get a copy of this message | ||
Yeah, thats my point. Ill rephrase it:
In Perl I use the foreach(), now is there an equivalent in PHP?
Thanx
Adam
At 13:08 20-05-00 +0200, you wrote:
PHP4 does have foreach()! see control-structures.foreach.html in the Docs. Patrick Meisel Does PHP have an equivalent of the Perl function "foreach". Heres and example (Perl code): foreach $line (@filedata) { stuff } How could I convert that to PHP? Thanks Adam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net