Hello, I wonder if I can push key and value to an array at the same time (something like $key=>$value pair).It is possible?Thank you very much.
array_push($your_output_array, array('id'=>$id, 'strSomeText'=>$strSomeText));
$your_output_array should already be an array.
I'm not sure, but try $array["key"] = "value";