if (TEMPLATE[USER_CAN_EDIT] == true) { //Something } else if (TEMPLATE[USER_CAN_EDIT] == false) { //Something else }
$TEMPLATE[USER_CAN_EDIT] = true;//code here that can change to false if user can not edit.if ($TEMPLATE[USER_CAN_EDIT] == true){//Something}elseif ($TEMPLATE[USER_CAN_EDIT] == false){//Something else}
$keys = array_keys($TEMPLATE);$values = array_fill(0,count($keys),true);$TEMPLATE = array_combine($keys,$values);
Jump To Top of Thread