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
Post a Comment