key value both in array push php code example Example: php array push one key multiple values $temp['value']=array('key1'=>'value1','key2'=>'value2');