array_reverse( ):Originariamente inviato da tizyjayd
mi stampa l'array nell'ordine originalecodice:$pieces = explode("|", $last_v); array_reverse($pieces); print_r($pieces);
Takes an input array and returns a new array with the order of the elements reversed.
quindi:
Codice PHP:
$pieces = explode("|", $last_v);
$pieces_reverse = array_reverse($pieces);
print_r($pieces_reverse);