- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$timestamp = strtotime("May");
echo "The unix epoch time from strtotime was $timestamp";
if ($timestamp === false) {
echo "strtotime returned false";
} elseif ($timestamp === -1) {
echo "strtotime didn't recognize the date string";
} else {
echo date('F',strtotime($timestamp));
} ?>