Re: PHP equivalent of "foreach"
| From: | Cynic | Date: | Sat, 20 May 2000 13:10:45 +0000 |
| Subject: | Re: PHP equivalent of "foreach" | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231@lists.php.net to get a copy of this message | ||
Read the answer again. YES, THERE IS FOREACH IN PHP. Read
http://www.php.net/manual/control-structures.foreach.php
At 13:02 20.5.2000 +0100, Adam Charnock wrote the following:
--------------------------------------------------------------
>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
>
>
>
>--
>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
>
------end of quote------
____________________________________________________________
Cynic:
A member of a group of ancient Greek philosophers who taught
that virtue constitutes happiness and that self control is
the essential part of virtue.
cynic@mail.cz
ICQ: 2808 2505