Link to home
Start Free TrialLog in
Avatar of designersx
designersx

asked on

How to flip the variables?

How to flip an array or variable values in descendinf order? is there any function for this. please don't take it with database.
Avatar of xSuperioRx
xSuperioRx
Flag of Finland image

If you mean the way they are located in the array then this should help:

http://www.developertutorials.com/tutorials/php/sorting-array-php-051114/page1.html
Avatar of designersx
designersx

ASKER

this link does not work.
ASKER CERTIFIED SOLUTION
Avatar of xSuperioRx
xSuperioRx
Flag of Finland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
In your other post (https://www.experts-exchange.com/questions/24333870/php.html) it looked like you wanted the keys sorted, so I guess this is a different question. If so, it has been answered above.

If you want the keys sorted too, and if this is the same question as your other post, you should know that it's against policy to repost the same question after abandoning the first version. I mention this as you seem fairly new to EE. Please forgive me if I misunderstood.

(I posted an answer for reverse sorting the keys as well under the other heading.)

If you need guidance on asking questions or accepting answers, just ask. There are many options for assistance.

Best of luck!
no sir this question was totally different from the other question.

thanks for the solution.