note 10312 added to substr
| From: | d dot paliani at saritel dot it | Date: | Wed, 27 Dec 2000 12:20:12 +0000 |
| Subject: | note 10312 added to substr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-9119@lists.php.net to get a copy of this message | ||
Giving a string like this to a conditional statement:
@ NS dns.server.tst.
with this syntax :
if ( (stristr($buffer, "@")) && (stristr($buffer, "NS")) )
would match but :
if ( (stristr($buffer, "NS")) && (stristr($buffer, "@")) )
would NOT .
So be careful to the "one passing" order that STRISTR use on the same statement.
http://www.php.net/manual/function.substr.php