我有一个二元素数组 - $time
回声 var_dump($time) :
array
0 =>
array
'otw' => string '12:00' (length=5)
'zam' => string '15:00' (length=5)
1 =>
array
'otw' => string '16:00' (length=5)
'zam' => string '18:00' (length=5)
如何将 $time 数组的每个元素转换为时间戳?
echo var_dump($time) 应该如下所示:
array
0 =>
array
'otw' => timestamp 'timestampvalue' (length=)
'zam' => timestamp 'timestampvalue' (length=)
1 =>
array
'otw' => timestamp 'timestampvalue' (length=)
'zam' => timestamp 'timestampvalue' (length=)