Jump to content

Help with if statment syntax


tqla

Recommended Posts

Hello. Here is my code to see if a variable is set and is numeric:

if (isset($selected_section_content) && is_numeric($selected_section_content)) {}

I want to add one more OR condition to this. I want to make the statement true if the variable is set, is numeric OR is "allow". Notice that "allow" in not numeric so it has to be an OR condition.

 

???

Link to comment
https://forums.phpfreaks.com/topic/139463-help-with-if-statment-syntax/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.