kafi
09-10-2007, 01:28 PM
I am trying to make conditional for more than 1 user.
The conditional for 1 user is :
if ($vbulletin->userinfo['userid'] == 2 )
Is this a best way for he conditional with 2 or more users?
if (in_array($vbulletin->userinfo['userid'], array(2,8)))
If there is a better solution, please suggest/explain (I am trying to learn something .-)
The conditional for 1 user is :
if ($vbulletin->userinfo['userid'] == 2 )
Is this a best way for he conditional with 2 or more users?
if (in_array($vbulletin->userinfo['userid'], array(2,8)))
If there is a better solution, please suggest/explain (I am trying to learn something .-)