RE: [PHP] random -n lines array problem

2003-03-06 Thread Jason Murray
> Where do you get that from? Probably from not trying it before I open my mouth. I must have dreamed it somewhere, sorry :) J -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] random -n lines array problem

2003-03-06 Thread John W. Holmes
> > 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

RE: [PHP] random -n lines array problem

2003-03-06 Thread Jason Murray
> You need to explode() $line. Won't that still cause problems for him, since explode() will ignore concurrent separators ()? Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] random -n lines array problem

2003-03-06 Thread Jason Wong
On Friday 07 March 2003 12:51, WebDev wrote: > the code only displays the 10 random line numbers > somehow again the arrays are empty, tried all tricks to see if arrays are > carrieng anything but the are all empty > $dreidrei, $dreivier, $dreifunf, $dreisechs ) = ($line); You need to explode() $