Ver Mensaje Individual
  #2 (permalink)  
Antiguo 02/09/2010, 11:01
Hidek1
Colaborador
 
Fecha de Ingreso: octubre-2009
Ubicación: Tokyo - Japan !
Mensajes: 3.867
Antigüedad: 14 años, 6 meses
Puntos: 334
Respuesta: Pasar una fecha a formato unix¿?

Código PHP:
Ver original
  1. $fecha = "11/02/1989";
  2. $fecha = str_replace("/", "-", $fecha); // strtotime no acepta slash.. pero si guiones.
  3. $fecha = strtotime($fecha);

saludos!
__________________
More about me...
~ @rhyudek1
~ Github