Jump to content

Reversing Array


Recommended Posts

Hello,I have trouble in reversing array values.My array is:

array(0=>'aaa',1=>'ddd',2=>'bbb',3=>'xxx',4=>'ggg',5=>'ddd');

I want to change it to:

array(0=>'ddd',1=>'ggg',2=>'xxx',3=>'bbb',4=>'ddd',5=>'aaa');

The array reversed, but only the values and it was not sorted.How can I do that?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...