<?php
$my_array=array(array('month'=> 3,
'day'=> 4,
'hour' => 1,
'minut' => 15,
'year'=> 2014),
array('month'=> 5,
'day'=> 7,
'hour' => 1,
'minut' => 50,
'year'=> 2012)
);
i=0;
foreach($my_array as $k => $v) {
$new_array[i] = $v["year"]."-".$v["month"]."-".$v["day"]." ".$v["hour"].$v["minut"];
i++;
}
- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
- Parse error: syntax error, unexpected '=' in /in/9fVA8 on line 14
Process exited with code 255.
preferences:
188.67 ms | 1395 KiB | 62 Q