Jump to content

Is stament with two conditional sets


ms.buggy

Recommended Posts

Hello,

I'm trying to check if the variable starts with certain digits, possible begins are +367 and +352.

I tried to set if  set something like this:

if ((gsm.charAt(0)!="+" && gsm.charAt(1)!=3 && gsm.charAt(2)!=6 && gsm.charAt(3)!=7) || (gsm.charAt(0)!="+" && gsm.charAt(1)!=3 && gsm.charAt(2)!=5 && gsm.charAt(3)!=2)){

 

Can someone help me with this issue?

 

 

Link to comment
https://forums.phpfreaks.com/topic/199396-is-stament-with-two-conditional-sets/
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.