Why isn't the sort () function in PHP working ??? what is wrong with the code ?

Boogyman

New member
I am trying to test the function sort() which is supposed to sort this array in ascending alphabetical order , but it is not working ...

Here is the code

<html>
<head> <title> Test</title> </head>
<body>



<?php


$product = array('oil'=>100 , 'Tires'=>500 , 'Sparkplus'=> 100);

echo sort($product);

?>

</body>
</html>
 
Back
Top