Answers for "sort an associative array keys alphabetical order phph"

PHP
10

php sort array by key

$weight = [
    'Pete' => 75, 
    'Benjamin' => 89,
    'Jonathan' => 101
  ];  	
  ksort($weight);
Posted by: Guest on December-04-2019

Code answers related to "sort an associative array keys alphabetical order phph"

Browse Popular Code Answers by Language