mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
strpos: fix pre-4.0b3 example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@65054 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
567a620c78
commit
8568fb9416
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.136 $ -->
|
||||
<!-- $Revision: 1.137 $ -->
|
||||
<reference id="ref.strings">
|
||||
<title>String functions</title>
|
||||
<titleabbrev>Strings</titleabbrev>
|
||||
|
@ -3017,7 +3017,7 @@ if ($pos === false) { // note: three equal signs
|
|||
|
||||
// in versions older than 4.0b3:
|
||||
$pos = strpos($mystring, "b");
|
||||
if (is_string($pos) && !$pos) {
|
||||
if (!is_integer($pos)) {
|
||||
// not found...
|
||||
}
|
||||
]]>
|
||||
|
|
Loading…
Reference in a new issue