Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

sort array php

$carsArray = array( "Volvo", "Honda", "Toyota", "BMW");

sort($carsArray);

$no_car = count($carsArray);

for( $x=0; $x<$no_car; $x++ )
{
  echo $carsArray[$x];
  echo "<br>";
}
Source by www.php.net #
 
PREVIOUS NEXT
Tagged: #sort #array #php
ADD COMMENT
Topic
Name
1+4 =