note 110953 added to function.strstr
| From: | mali at dcc1000 dot com | Date: | Fri, 28 Dec 2012 18:02:00 +0000 |
| Subject: | note 110953 added to function.strstr | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-192698@lists.php.net to get a copy of this message | ||
If you want only to verify if a string contains another string just compare with a simple equal
'='
<?php
$MainString = "For simple purposes"
$SearchString = "pur";
if ($SearchString = $MainString)
{
}
?>
----
Server IP: 91.118.111.7
Probable Submitter: 62.178.196.52
----
Manual Page -- http://php.net/manual/en/function.strstr.php
Edit -- https://master.php.net/note/edit/110953
Del: integrated -- https://master.php.net/note/delete/110953/integrated
Del: useless -- https://master.php.net/note/delete/110953/useless
Del: bad code -- https://master.php.net/note/delete/110953/bad+code
Del: spam -- https://master.php.net/note/delete/110953/spam
Del: non-english -- https://master.php.net/note/delete/110953/non-english
Del: in docs -- https://master.php.net/note/delete/110953/in+docs
Del: other reasons-- https://master.php.net/note/delete/110953
Reject -- https://master.php.net/note/reject/110953
Search -- https://master.php.net/manage/user-notes.php