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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sort #array #php
ADD COMMENT
Topic
Name
4+5 =