$date = DateTime::createFromFormat('m-d-Y, H:i A', '05-21-2005, 12:27 AM');
echo $date->format('Y-m-d H:i:s');
https://ideone.com/kGvh91 $arr1 = [ 'Петя', 'Коля', 'Вася' ];
$arr2 = [ '100руб', '200руб', '300руб' ];
$arr3 = [ 'Москва', 'Тверь', 'Уфа' ];
for($i = 0, $size = count($arr1); $i < $size; ++$i) {
$result[] = [$arr1[$i], $arr2[$i], $arr3[$i]];
}
print_r($result);
https://ideone.com/eFv0LH Key Down
Characters:
Unicode: 3 / 0x3
Keys: ⌅
Key Code: 76 / 0x4c
Modifiers: 2097408 / 0x200100
Key Down
Characters:
Unicode: 13 / 0xd
Keys: ↵
Key Code: 36 / 0x24
Modifiers: 256 / 0x100