PHP complex check between different arrays -


my goal decide if $icurrentmembershipid can access $acurrentmenu array based on: if $icurrentmembershipid in $arescrictaccess array.

if(is_array($arescrictaccess)){    // not sure } 

ultimately, need deny access page if users $icurrentmembershipid in $arescrictaccess array.

if(is_array($arestrictaccess)){     if(in_array($icurrentmembershipid, $arestricaccess) === false){         /* display $acurrentmenu */     } } 

Comments

Popular posts from this blog

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -