Thread
:
Array Search
View Single Post
#
3
08-23-2009, 06:18 AM
cbk1994
the fake one
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
Also remember you can do this for caps-insensitive searching...
PHP Code:
if (array.
index
(@
player
.
account
) > (-
1
)) {
// stuff
}
array.index(obj)
returns the index that the object is located at within the array.
__________________
cbk1994
View Public Profile
View GraalOnline Profile
Visit cbk1994's homepage!
Find all posts by cbk1994