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