RE: Echo a value from an arrays position

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



[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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux