Jonas Rosling wrote:

Need solve another case regarding array maps. Is it possible to insert more
values like with array_push in arrays as bellow?

$colors = array(
             'red' => '#ff0000',
             'green' => 'X00ff00',
             'blue' => '#0000ff'
          );

Did you try it? It will work, but there is no need for array_push. All you need is...

$colors['yellow'] = '#ffff00';

-Stut

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

Reply via email to