list($day,$month,$year) = explode('/','25/02/2008'); echo $year.'/'.$month.'/'.$day;
function br2mysql($data) { return implode("-",array_reverse(explode("/",$data))); } function mysql2br($data) { return implode("/",array_reverse(explode("-",$data))); }