Jump to content

[SOLVED] ! not working?


spires

Recommended Posts

Hi guys, for some reason I can't get ! to work.

 

if (!$var_mobile_number[1] == '7'){
echo 'yes';
}else{
echo 'no';
}

 

I want it so if $var_mobile_number[1] is not == to 7 then echo yes.

 

But this does not seem to work.

 

Any ideas?

 

 

Thanks

 

May need a bit more code.

Link to comment
https://forums.phpfreaks.com/topic/137171-solved-not-working/#findComment-716546
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.