fork download
  1. <?php
  2. $myarray = array(
  3. 'data'=>
  4. array('age'=>10)
  5. );
  6. $myarray['data']['gender'] = "male";
  7. var_dump($myarray);
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
array(1) {
  ["data"]=>
  array(2) {
    ["age"]=>
    int(10)
    ["gender"]=>
    string(4) "male"
  }
}