Jump to content

If and If not and else


egturnkey

Recommended Posts

Hello dear friends,

 

Let's says we have

 

$manal = "zzzz";

 

and

 

$soliman = "yyyy";

 

and

 

$shams ="xxxx";

 

then how we say the following !!

 

if $s = $manal

show 111111

 

and if $s = $soliman

show 22222

 

and if $s = $shams

show 333333

 

else

show 444444

 

 

second case

if there any if (x or y )

 

i means if i want to say

 

if $s = $manal or $shams

then show 11111

else

show 22222

 

 

 

 

thanks for help, it will makes me understand how if/and if /else working >

Link to comment
https://forums.phpfreaks.com/topic/195282-if-and-if-not-and-else/
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.