philip          Thu Feb 20 04:47:21 2003 EDT

  Modified files:              
    /phpdoc/en/reference/regex/functions        eregi.xml ereg.xml 
  Log:
  Returns bool not int thanks to Eugenio.  Added <?php ?>, and see also strstr and 
strpos.
  
  
Index: phpdoc/en/reference/regex/functions/eregi.xml
diff -u phpdoc/en/reference/regex/functions/eregi.xml:1.2 
phpdoc/en/reference/regex/functions/eregi.xml:1.3
--- phpdoc/en/reference/regex/functions/eregi.xml:1.2   Wed Apr 17 02:43:50 2002
+++ phpdoc/en/reference/regex/functions/eregi.xml       Thu Feb 20 04:47:21 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/regex.xml, last change in rev 1.2 -->
   <refentry id="function.eregi">
    <refnamediv>
@@ -9,7 +9,7 @@
    <refsect1>
     <title>Description</title>
      <methodsynopsis>
-      <type>int</type><methodname>eregi</methodname>
+      <type>bool</type><methodname>eregi</methodname>
       <methodparam><type>string</type><parameter>pattern</parameter></methodparam>
       <methodparam><type>string</type><parameter>string</parameter></methodparam>
       <methodparam 
choice="opt"><type>array</type><parameter>regs</parameter></methodparam>
@@ -22,17 +22,21 @@
       <title><function>eregi</function> example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 if (eregi("z", $string)) {
     echo "'$string' contains a 'z' or 'Z'!";
 }
+?>
 ]]>
       </programlisting>
      </example>
     </para>
     <para>
      See also <function>ereg</function>,
-     <function>ereg_replace</function>, and
-     <function>eregi_replace</function>.
+     <function>ereg_replace</function>,
+     <function>eregi_replace</function>,
+     <function>stripos</function>, and
+     <function>stristr</function>.
     </para>
    </refsect1>
   </refentry>
Index: phpdoc/en/reference/regex/functions/ereg.xml
diff -u phpdoc/en/reference/regex/functions/ereg.xml:1.2 
phpdoc/en/reference/regex/functions/ereg.xml:1.3
--- phpdoc/en/reference/regex/functions/ereg.xml:1.2    Wed Apr 17 02:43:50 2002
+++ phpdoc/en/reference/regex/functions/ereg.xml        Thu Feb 20 04:47:21 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
 <!-- splitted from ./en/functions/regex.xml, last change in rev 1.2 -->
   <refentry id="function.ereg">
    <refnamediv>
@@ -9,7 +9,7 @@
    <refsect1>
     <title>Description</title>
      <methodsynopsis>
-      <type>int</type><methodname>ereg</methodname>
+      <type>bool</type><methodname>ereg</methodname>
       <methodparam><type>string</type><parameter>pattern</parameter></methodparam>
       <methodparam><type>string</type><parameter>string</parameter></methodparam>
       <methodparam 
choice="opt"><type>array</type><parameter>regs</parameter></methodparam>
@@ -60,11 +60,13 @@
       <title><function>ereg</function> Example</title>
       <programlisting role="php">
 <![CDATA[
+<?php
 if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) {
     echo "$regs[3].$regs[2].$regs[1]";
 } else {
     echo "Invalid date format: $date";
 }
+?>
 ]]>
       </programlisting>
      </example>
@@ -72,8 +74,10 @@
     <simpara>
      See also <function>eregi</function>,
      <function>ereg_replace</function>,
-     <function>eregi_replace</function>, and
-     <function>preg_match</function>.
+     <function>eregi_replace</function>,
+     <function>preg_match</function>,
+     <function>strpos</function>, and
+     <function>strstr</function>.
     </simpara>
    </refsect1>
   </refentry>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to