Re: shuffle

From: Date: Wed, 14 Jul 2004 22:00:28 +0000
Subject: Re: shuffle
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-190540@lists.php.net to get a copy of this message
* Thus wrote Edward Peloke: > it is strange... > > if I do this: > > function nextRecord(){ > $this->record=@mysql_fetch_array($this->queryID); Don't use the @ sign, it is bad practice. > $test=$this->record; > echo $test; I'm not sure what this is for. > > $status=is_array($this->record); > return ($status); > } > > "Array" is echoed for $test so I know it is an array but if I add this: > > shuffle($test); Where in the world did $test get set from? if $test is expected to be the value of $this->record, then all your going to be doing is shuffling the order of the columns. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid!

« previous php.general (#190540) next »