[PHP] unless something...

2002-09-12 Thread Magnus Solvang
I'm used to the unless-statement in perl... How do I do this: if string A or B are NOT in string C, then do something and quit. In perl, I would do this: unless ($c =~ /$a|$b/) { blabla exit 0 } - M -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] unless something...

2002-09-12 Thread Zak Greant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On September 12, 2002 09:47, Magnus Solvang wrote: I'm used to the unless-statement in perl... How do I do this: if string A or B are NOT in string C, then do something and quit. In perl, I would do this: unless ($c =~ /$a|$b/) { blabla