Array Transversing

From: Date: Thu, 31 Aug 2000 21:06:45 +0000
Subject: Array Transversing
Groups: php.db 
Request: Send a blank email to php-db+get-2536@lists.php.net to get a copy of this message
I have the results of a distinct select that gives me an array comprised of one of each field type under a given field heading. I would like to be able transverse the array with an if statemetn that if given a result variable will give me the next in the array. For example $variable = "one". $ARR = queryresult[zero,one,two,three]. If $variable = "one" give me the next in the array (two). Any thoughts? Thanks, Stacy

« previous php.db (#2536) next »