- preg_match: documentation ( source)
- print_r: documentation ( source)
- date: documentation ( source)
<?php
//$data=new DateTime('31/2/2013');
print_r($data);
echo ((31)%31)."\n";
echo date('d');
echo ((30+1)%31)."\n";
//echo $data->add(new DateInterval('P1D'))."\n";
if(preg_match('#^(\d{2})/(\d{2})/(\d{4})$#', 'fs10/12f/2010fdf', $matches)) echo "Match";
print_r($matches);