RE: [PHP] More array syntax

2003-03-08 Thread John W. Holmes
> here is a tricky question , as i've probably said work is still using php3 > and > mysql 3.22 which has no random select function , and the only way i can > randomise results is place them into an array and use shuffle , although > shuffle will not randomise on a two dimensional array , how can i

RE: [PHP] More array syntax

2003-03-08 Thread daniel
here is a tricky question , as i've probably said work is still using php3 and mysql 3.22 which has no random select function , and the only way i can randomise results is place them into an array and use shuffle , although shuffle will not randomise on a two dimensional array , how can i get th

Re: [PHP] More array syntax

2003-03-08 Thread Greg Beaver
Hi John, foreach ($var as $key => $value) { if (!$key) { $$key = filter_string($key.': ',$line); } } Regards, Greg -- phpDocumentor http://www.phpdoc.org John Taylor-Johnston wrote: I have an array $var (see structure below), which contains AN, AU, TI, PY ... etc. (28 in total - n