![]() |
"Reversing" Arrays
Hrm, is there a function that reverses a array?
like this.array[ 0 ] = 2; this.array[ 1 ] = 3; this.array[ 2 ] = 1; now this.array.reverse(); or something like this would make this.array[ 0 ] == 1; this.array[ 1 ] == 3; this.array[ 2 ] == 2; |
Make a function for it..?
|
Can I ask why you would want to do this?
PHP Code:
|
making a function is easy
but before i make a function i ask if theres already another function that does the same thing |
Quote:
You should check the wiki more often. |
Quote:
|
There is not (yet). We could add a few more string and array operators if wanted though.
|
Well, the wiki's search function sucks
|
Quote:
|
Some string functions I use sometimes.
ReverseArray: PHP Code:
PHP Code:
PHP Code:
|
| All times are GMT +2. The time now is 04:26 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.