elenat82
7/31/2015 - 3:03 PM

la funzione rsort().php

<?php 
$film = array("Pulp Fiction", 'thriller' => "The Next Three Days", "Inside Man", 'commedia' => "Ted");
$scaffale = rsort($film);
if ($scaffale) {
	echo "<p>L'ordinamento all'inverso è andato a buon fine</p>";
}
else {
	echo "<p>Non è stato possibile ordinare l'array</p>";
}
print_r($film);
 ?>