You need to split() the variable ($mboxs)  on newlines "\n"

Jim

----- Original Message -----
From: "Jim Greene" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 18, 2003 8:22 AM
Subject: [PHP] Question about a text file and foreach


> Hi All,
> I have a text file that has entries like the following:
> user1:mbox1:
> user1:mbox2:
>
> I basically do: $mboxs = `cat file | grep user1 | cut -d: -f2';
> I then want to print out the data in the $mboxs variable (array)
> I am trying to use foreach but it does not work..  I am assuming the data
is not considered an array?
> Any help would be appreciated.. Thanks
> Jim
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to