Jump to content

Array_multisort


pizzaguy
 Share

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...