Código PHP:
srand(time());
do{
if(is_null($rutas)){
}else{
$marcador=$rutas.rand();
$valx=array_values($_SESSION['itemsEnCesta3']);// esta funcion me devuelve
Warning: array_values() [function.array-values]: The argument should be an array in D:VertrigoServwwwsiscepdesplazamientosmodificacionesminuta_asesor.php on line 87
if(!is_null($valx[5])){
echo "a";
foreach($_SESSION['itemsEnCesta3'] as $buscar => $k){
if ($marcador == $buscar){
$marcador=$rutas.rand();
$valor=1;
}else{
$valor=0;
}
}
}
}
}while($valor>1);