![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
27/02/2013, 16:15
|
![Avatar de kakashi20](http://static.forosdelweb.com/customavatars/avatar323186_1.gif) | | | Fecha de Ingreso: septiembre-2009
Mensajes: 616
Antigüedad: 15 años, 4 meses Puntos: 15 | |
ordenar array hola
tengo este arra el cual lo intento ordenar y despues concatenar sus valores pero me arroja un warning:
$var = ",2,5,1,3,4"
$hora = explode(",",$rvar);
$hora2 = sort($hora);
$horanueva = "";
foreach($hora2 as $h){
if ( $h != "" ){
$horanueva .= hora($h)." ";
}
}
me arroa este warning:
Warning: Invalid argument supplied for foreach()
si alguien me pudiese ayudar se lo agradeceria |