$test = array (
"test1" => array("a" => "1", "b" => "2", "c" => "3")
);
I have an array like above. ı want to push its values in a loop. How can it be possible ? Could you please tell me ?
$test = array (
"test1" => array("a" => "1", "b" => "2", "c" => "3")
);
I have an array like above. ı want to push its values in a loop. How can it be possible ? Could you please tell me ?
If you have to push new values you can just do like this:
$test['test1']['newkey1'] = 'newvalue1';
$test['test1']['newkey2'] = 'newvalue2';
$test['test1']['d'] = '4';
or
$test['test2'] = array(...);