- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$testArray = array(-1, 0, 1, "Feb");
for($i = 0, $size = count($testArray); $i < $size; ++$i) {
$testDate = $testArray[$i];
echo $testDate;
echo strtotime($testDate), "\n";
echo date('r',strtotime($testDate)), "\n";
}