Qualcosa non funziona...
Questo è il codice che sto utilizzando:
codice:
$temp = [];    
    foreach( $neworder as $key ) {
        $temp[] = $imglist[$key];
    }
    $imgs = $temp;
    unset($temp);
laddove $neworder è un array numerico (tipo: 1,3,2,4,5,6...) e $imglist un array di nomi (tipo cane,gatto, topo...).
Se faccio un print_r di $imgs mi restituisce un array vuoto [ "array ( )" ]...