- explode: documentation ( source)
- checkdate: documentation ( source)
<?php
$dateofbirth = '03/20/80';
list($mm,$dd,$yyyy) = explode('/',$dateofbirth);
if (!checkdate($mm,$dd,$yyyy)) {
echo 'this should fail!';
}
else
echo 'passed valid shit date?';