note 4651 deleted from each by ronabop
| From: | ronabop@php.net | Date: | Mon, 21 Aug 2000 09:39:16 +0000 |
| Subject: | note 4651 deleted from each by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-2855@lists.php.net to get a copy of this message | ||
We're converting our perl site to PHP and I'm really stuck on switching
"foreach" statements to "for" statements.
I'm using flat cheesy colon deliminated databases. so like what would the php equiv of the
below perl line be? please mail me. thanks.
<PRE> foreach $data (@data) {
@info = split("::", $data);</PRE>
}
data=each line in the file and
@info being each field.