Haystack and needle permuted.

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@26486 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Egon Schmid 2000-06-16 13:44:10 +00:00
parent 4461cf78a8
commit c80abd691e

View file

@ -1689,13 +1689,13 @@ if ( !strcasecmp($var1,$var2) ) {
<informalexample>
<programlisting role="php">
// in PHP 4.0b3 and newer:
$pos = strpos ("b", $mystring);
$pos = strpos ($mystring, "b");
if ($pos === false) { // note: three equal signs
// not found...
}
// in versions older than 4.0b3:
$pos = strpos ("b", $mystring);
$pos = strpos ($mystring, "b");
if (is_string ($pos) && !$pos) {
// not found...
}