RE: [PHP] Echo a value from an arrays position

From: Date: Thu, 04 May 2006 13:28:20 +0000
Subject: RE: [PHP] Echo a value from an arrays position
Groups: php.general 
Request: Send a blank email to php-general+get-235509@lists.php.net to get a copy of this message
[snip] > $colors = > > array('white'=>'#ffffff','black'=>'#000000','blue'=>'#0000ff'); > foreach($colors AS $key => $value){ > echo $value . "<br />\n"; > } > But I don't get anything out of this code. Why? Doesn't echo anything? [/snip] Seriously? Works fine here.

« previous php.general (#235509) next »