- preg_match: documentation ( source)
- print_r: documentation ( source)
<?php
function get_mysqldate_from_stdtime($std_time='')
{
if (preg_match("@(\\d{1,2})\.(\\d{1,2})\.(\\d{4})@", $std_time, $matches) <> 1) {
print_r($matches);
}
}
get_mysqldate_from_stdtime("01.10.2014");
?>