mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
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:
parent
4461cf78a8
commit
c80abd691e
1 changed files with 2 additions and 2 deletions
|
@ -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...
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue