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:
jim winstead 2001-12-14 20:09:33 +00:00
parent 567a620c78
commit 8568fb9416

View file

@ -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...
}
]]>