I\'m trying to convert a variable with an integer value to a 12 hour format, but It\'s just returning 12 am.
$hour = 18; echo date(\'h a\', $hour);