Getting the array element

From: Date: Thu, 04 May 2006 06:45:57 +0000
Subject: Getting the array element
Groups: php.general 
Request: Send a blank email to php-general+get-235447@lists.php.net to get a copy of this message
Hi again all, Here my next PHP newbie question. When I'm building an array as bellow. Is there any way I can get the left element out of the array? $salesperson = array(); while($row=mysql_fetch_array($result)) { $salesperson[$row[1]] = '0'; } If I write: echo $salesperson[$row[3]]; I get the value. I think you know what I mean?! Thanks // Jonas

« previous php.general (#235447) next »