Just a quickie (I hope)
$rdate = 200307; $olddate = 20030722231624;
Say I was the check that $rdate = the 20030722231624 part for $olddate?
What is the best way to go about this?
you could use strstr() but I would suggest something like...
if(substr($olddate,0,strlen($rdate)) == $rdate) { echo "Matched!"; } else { echo "No match here!"; }
perfect 🙂
Thanks