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'; $hour = date("g",$time); $min = date("i",$time); $ampm = date("a",$time);
http://php.net/manual/function.date.php