Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php sort array by key

  $weight = [
    'Pete' => 75, 
    'Benjamin' => 89,
    'Jonathan' => 101
  ];  	
  ksort($weight);
 
PREVIOUS NEXT
Tagged: #php #sort #array #key
ADD COMMENT
Topic
Name
6+9 =