rsort() --> reverse an array element as well as sort according to dictionary order.
array_reverse() --> reverse array element also has the facility to keep preserve the array index.
by giving second parameter like array_reverse($a,true) where $a is an array.
Example
Post a Comment