Answer the question
In order to leave comments, you need to log in
How to convert a string using regular expressions (PHP)?
There are inputs like:
$date_and_time = array (
[0] => '06.08.2019 12:09:43',
[1] => '06.08.2019 09:45:19',
[2] => '29.07.2019 14:13:31'
);
$date_and_time = array (
[0] => array (
'date' => '29.07.2019',
'time' => ''14:13:31,
'unix_time' => 1564409611
),
[1] => array (
'date' => '06.08.2019',
'time' => '09:45:19',
'unix_time' => 1559987119
),
[2] => array (
'date' => '29.07.2019',
'time' => '14:13:31',
'unix_time' => 1564409611
),;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question