Okay, so i have a user system that runs off of the phpBB3 user database on my site. i can call the rank variable (their rank on the site) with... <?php if($user->data['user_rank'] == "1") //rank 1 =Admin { echo 'Go To Admin panel!'; } ?> Code (markup): But i want to have it so that rank 1,2,3 and 5 can access it. could i do it like this? <?php if($user->data['user_rank'] == "1" || "2" || "3" || "5") { echo 'Go To Admin panel!'; } ?> Code (markup): any help is greatly appreciated.
<?php $rank = $user->data['user_rank'] ; if(in_array ("1", $rank)) { echo 'Go To Admin panel!'; } ?> Code (markup): would that make sense? or do i have to do something else?