I have a time \"7:00 am\" that I need to split into $hour, $min, $ampm. Is there an easy way that I can split this in to 3 variables?
$hour
$min
$ampm
$time = '7:00 am'; list ($time, $ampm) = explode(' ', $time); list ($hour, $min) = explode(':', $time);