Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/11/2003, 07:51
Avatar de edwinandlozano
edwinandlozano
 
Fecha de Ingreso: octubre-2003
Mensajes: 272
Antigüedad: 23 años
Puntos: 0
Hola Cluster, gracias por tu respuesta, la manera que lo realice fue de al siguiente forma:

Código PHP:
    $fecha = explode(" ",$strFecha);
    
$fecha = implode("",$fecha);
    
$fecha = explode(",",$fecha);
    
$fecha = implode("",$fecha);
    
$fecha = explode("de",$fecha);

    
$cont = count($fecha);

    
$meses = array("Enero" => 1, "Febrero" =>2, "Marzo" =>3, "Abril" =>4, "Mayo" =>5, "Junio" =>6, "Julio" =>7, "Agosto" =>8, "Septiembre" =>9, "Octubre" => 10, "Noviembre" =>11, "Diciembre" =>12);

    foreach (
$meses as $key => $value) {
    
        for (
$i=0; $i<$cont; $i++)
            if (
eregi($fecha[1],$key)) {
                
$temp = $fecha[0];
                
$fecha[0] = $fecha[2];
                
$fecha[1] = $value;
                
$fecha[2] = $temp;
            }
    }
    
$FechaReal = implode("-",$fecha); 
de esta forma fue que consegui que me entregara la forma que necesito.....