array_multisort : Array Function : Data Structure PHP Source Code


PHP Source Code » Data Structure » Array Function »

 

array_multisort




<?php
   $staff["givenname"][0"A";
   $staff["givenname"][1"B";
   $staff["givenname"][2"C";
   $staff["givenname"][3"D";
   $staff["surname"][0"E";
   $staff["surname"][1"F";
   $staff["surname"][2"G";
   $staff["surname"][3"H";
   $res = array_multisort($staff["surname"],SORT_STRING,SORT_ASC,$staff["givenname"],SORT_STRING,SORT_ASC);
   print_r($staff);
?>

           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Data Structure
» Array Function