Is there a way of defining some variables with true or false and passing them in collectively into a function as a parameter like in C++ like flags to turn sections of a function on or off using the bitwise inclusive or... For example:
// Declare
define( "ADMIN", TRUE);
define( "CLIENT", TRUE);
function Authenticated( $flags )
{
// Not sure what would go here ? but something like
// If ADMIN then
// If CLIENT then
// If ADMIN | CLIENT then
}
// Call
Authenticated( ADMIN | CLIENT );