<?php
$string1 = "12 jan";
$string2 = "12 aprail, 13 march";
$result = strcmp($string1, $string2);
switch ($result) {
case -1: print "date are not identical"; break;
case 0: print "date1"; break;
case 1: print "date are identical"; break;
}
?>
when i use this code it will show me a date are identical even the value ex when i compare the value 12 jan to 12 march it will show me value are identical but the value is differ