Thread
:
Move to next item in array
View Single Post
#
6
07-26-2010, 11:27 PM
DrakilorP2P
Registered User
Join Date: Apr 2006
Posts: 755
One-liner and without extra variables:
PHP Code:
serverr
.
day
=
this
.
dayarray
[(
this
.
dayarray
.
index
(
serverr
.
day
) +
1
) %
this
.
dayarray
.
size
()];
Assumes that serverr.day is a valid value.
DrakilorP2P
View Public Profile
View GraalOnline Profile
Find all posts by DrakilorP2P