/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
'19:00', '21:00', '23:00' ); '20:00', '22:00', '24:00' ); { $hour_from = $hours_from[$i]; $hour_to = $hours_to[$i]; $hours[$i] = $hour_from.' - '.$hour_to; } } } print $hours; // 21:00 - 22:00, 23:00 - 24:00