How do append a key that has a value to the end of an array?
$arr = array ( 'one' => '1', 'two' => '2' );
I would like to add the key three with the value of 3!
$arr['three'] = '3';
what if I wanted to insert four but have php generate the key id? I wan't to add the entry in the end! Nothing should be replaced!
what if I wanted to insert four but have php generate the key id?
How would PHP know what key you want to use in an associative array?
You can have it do it with numerals, but not with words.
Hi,
Laser showed you how to set a new value in an array.
here: http://au3.php.net/manual/en/function.number-format.php is a function to go from number to text
Thank you.