kindly tell me is this statement is right? i want to use isset statemnt with or condition...
if( isset($_GET) || isset($_GET))
...........
Regards..
Farhad
kindly tell me is this statement is right? i want to use isset statemnt with or condition...
if( isset($_GET) || isset($_GET))
...........
Regards..
Farhad
You should be using || instead of |. The || is for comparison and the | is a bitwise operator and I do not think that you are trying to shift or combine bits.
You should be using || instead of |. The || is for comparison and the | is a bitwise operator and I do not think that you are trying to shift or combine bits.
i used || operator..
yes, you are using the correct syntax.
when in doubt test it, use echo to see your values.
if they are the expected values that you should be seeing then you are fine, if not figure out what is set and what is not.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.