I'm tring to add new values to an associative array dynamically and I need your help. Here is a simple example :
$a = array();
$a["name"]= "n1";
$a["age"]= "age1";
$a["name"]= "n2";
$a["age"]= "age2";
The result is: Array (2){["name"]=>string(2) "n2" ["age"]=>string(4) "age2" }
I want to add The first age and name and the second age and name to the array. What can I do??