requnix Posted February 18, 2010 Report Share Posted February 18, 2010 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 comment Share on other sites More sharing options...
requnix Posted February 18, 2010 Author Report Share Posted February 18, 2010 Nah forget it, I just found the array_reverse() function. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now