RE: [PHP] random -n lines array problem
| From: | John W. Holmes | Date: | Fri, 07 Mar 2003 03:33:17 +0000 |
| Subject: | RE: [PHP] random -n lines array problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-138551@lists.php.net to get a copy of this message | ||
> > You need to explode() $line.
>
> Won't that still cause problems for him, since explode() will
> ignore concurrent separators (||||)?
Where do you get that from?
$a = "a|b|||c||d";
$b = explode("|",$a);
print_r($b);
Array
(
[0] => a
[1] => b
[2] =>
[3] =>
[4] => c
[5] =>
[6] => d
)
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/