See how it sorts when two values are the same:


SUBMITTED BY: henry1874w

DATE: June 25, 2017, 2:30 p.m.

FORMAT: Text only

SIZE: 133 Bytes

HITS: 232

  1. <?php
  2. $a1=array("Dog","Dog","Cat");
  3. $a2=array("Pluto","Fido","Missy");
  4. array_multisort($a1,$a2);
  5. print_r($a1);
  6. print_r($a2);
  7. ?>

comments powered by Disqus