I don't really follow, but if you have an array of users, you can check to see if they're in it with in_array(). If not you can add an user with array_push().
diafol
Rhod Gilbert Fan (ardav)
7,792 posts since Oct 2006
Reputation Points: 1,170
Solved Threads: 1,080
Like ardav said you could use array where username is key and his status be value like evstevemd=>idle
and use
if(!array_key_exists($username)){
array[$key] = "active";
}
Nothing tested, but just to give an idea!
evstevemd
Senior Poster
3,713 posts since Jun 2007
Reputation Points: 462
Solved Threads: 392