Codice PHP:
$data '2006-12-15';
$arr explode('-',$data);
$str $arr[2].$arr[1].substr($arr[0],2,2);
echo 
$str