Jump to content

Array_multisort


pizzaguy

Recommended Posts

does array_multisort() sort the arrays given individually or does it sort the first array and then sort the additional arrays based on the first array? If the latter is false, how would i achieve that? I have two arrays and i want to sort the first one, and then have the second one be sorted into the same order.for example:array("b","d","c","a");array("tom","cat","car","Peter Griffin");gets sorted to:array("a","b","c","d");array("Peter Griffin","tom","car","cat");

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...