I'm not talking about array_flip()
, i want to reverse an array without a numerical/alphabetical basis, just upside down.
Example:
array('music','television','hollywood');
Will be:
array('hollywood','television','music');
Thanks!
It looks like you'd want to use array_reverse.
how about array_reverse
?
Try array_reverse.
If I understand what you're talking about, I think you want array_reverse
; the term for what you want is just called "reversing". I'm not sure I understand what you want (I, for one—and I think others too—tend to think of arrays as horizontal, so "upside-down" is a strange concept to apply to them, at least to me), though, so if this doesn't work, let me know.