jimw            Fri Dec 14 15:09:33 2001 EDT

  Modified files:              
    /phpdoc/en/functions        strings.xml 
  Log:
  strpos: fix pre-4.0b3 example
  
Index: phpdoc/en/functions/strings.xml
diff -u phpdoc/en/functions/strings.xml:1.136 phpdoc/en/functions/strings.xml:1.137
--- phpdoc/en/functions/strings.xml:1.136       Wed Dec 12 15:47:30 2001
+++ phpdoc/en/functions/strings.xml     Fri Dec 14 15:09:33 2001
@@ -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 @@
 
 // in versions older than 4.0b3:
 $pos = strpos($mystring, "b");
-if (is_string($pos) && !$pos) {
+if (!is_integer($pos)) {
     // not found...
 }
 ]]>


Reply via email to