PHP complex check between different arrays

DavidH

New Member
My goal is to decide if the\[code\]$iCurrentMembershipId\[/code\] can access the \[code\]$aCurrentMenu\[/code\] arraybased on: if the \[code\]$iCurrentMembershipId\[/code\] is in the \[code\]$aRescrictAccess\[/code\] array. \[code\]if(is_array($aRescrictAccess)){ // Not sure what to do}\[/code\]Ultimately, I would need deny access to the page if the users \[code\]$iCurrentMembershipId\[/code\] is in the \[code\]$aRescrictAccess\[/code\] array.
 
Back
Top