Ver original<?php $fecha = "2/3/2012";$fecha = explode('/',$fecha);$fecha = $fecha[2]*10000+$fecha[1]*100+$fecha[0]; echo $fecha;?>