<?php$myarray = array( 'data'=> array('age'=>10) );$myarray['data']['gender'] = "male";var_dump($myarray);
Standard input is empty
array(1) { ["data"]=> array(2) { ["age"]=> int(10) ["gender"]=> string(4) "male" } }
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!