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