cvs: phpdoc-it /reference/regex/functions ereg.xml eregi.xml
| From: | Andrioli Darvin | Date: | Mon, 24 Feb 2003 20:28:15 +0000 |
| Subject: | cvs: phpdoc-it /reference/regex/functions ereg.xml eregi.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-252@lists.php.net to get a copy of this message | ||
darvina Mon Feb 24 15:28:15 2003 EDT
Modified files:
/phpdoc-it/reference/regex/functions ereg.xml eregi.xml
Log:
Update to En 1.3
Index: phpdoc-it/reference/regex/functions/ereg.xml
diff -u phpdoc-it/reference/regex/functions/ereg.xml:1.2
phpdoc-it/reference/regex/functions/ereg.xml:1.3
--- phpdoc-it/reference/regex/functions/ereg.xml:1.2 Wed Apr 17 03:08:18 2002
+++ phpdoc-it/reference/regex/functions/ereg.xml Mon Feb 24 15:28:14 2003
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/regex.xml, last change in rev 1.1 -->
<!-- last change to 'ereg' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
<!-- OLD-Revision: 1.42/EN.1.2 -->
<refentry id="function.ereg">
<refnamediv>
@@ -11,7 +11,7 @@
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
- <type>int</type><methodname>ereg</methodname>
+ <type>bool</type><methodname>ereg</methodname>
<methodparam><type>string</type><parameter>epressione_regolare</parameter></methodparam>
<methodparam><type>string</type><parameter>stringa</parameter></methodparam>
<methodparam
choice="opt"><type>array</type><parameter>regs</parameter></methodparam>
@@ -64,11 +64,13 @@
<title><function>ereg</function> Esempio</title>
<programlisting role="php">
<![CDATA[
+<?php
if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $data, $regs)) {
echo "$regs[3].$regs[2].$regs[1]";
} else {
echo "Formato di data non valido: $data";
}
+?>
]]>
</programlisting>
</example>
@@ -76,8 +78,10 @@
<simpara>
Vedere anche <function>eregi</function>,
<function>ereg_replace</function>,
- <function>eregi_replace</function> e
- <function>preg_match</function>.
+ <function>eregi_replace</function>,
+ <function>preg_match</function>,
+ <function>strpos</function> e
+ <function>strstr</function>.
</simpara>
</refsect1>
</refentry>
Index: phpdoc-it/reference/regex/functions/eregi.xml
diff -u phpdoc-it/reference/regex/functions/eregi.xml:1.3
phpdoc-it/reference/regex/functions/eregi.xml:1.4
--- phpdoc-it/reference/regex/functions/eregi.xml:1.3 Thu Jul 18 09:40:44 2002
+++ phpdoc-it/reference/regex/functions/eregi.xml Mon Feb 24 15:28:14 2003
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- splitted from ./it/functions/regex.xml, last change in rev 1.1 -->
<!-- last change to 'eregi' in en/ tree in rev 1.2 -->
-<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
<!-- OLD-Revision: 1.42/EN.1.2 -->
<refentry id="function.eregi">
<refnamediv>
@@ -11,7 +11,7 @@
<refsect1>
<title>Descrizione</title>
<methodsynopsis>
- <type>int</type><methodname>eregi</methodname>
+ <type>bool</type><methodname>eregi</methodname>
<methodparam><type>string</type><parameter>espressione_regolare</parameter></methodparam>
<methodparam><type>string</type><parameter>stringa</parameter></methodparam>
<methodparam
choice="opt"><type>array</type><parameter>regs</parameter></methodparam>
@@ -24,17 +24,21 @@
<title>Esempio di <function>eregi</function></title>
<programlisting role="php">
<![CDATA[
+<?php
if (eregi("z", $stringa)) {
echo "'$stringa' contiene una 'z' oppure una 'Z'!";
}
+?>
]]>
</programlisting>
</example>
</para>
<para>
Vedere anche <function>ereg</function>,
- <function>ereg_replace</function> e
- <function>eregi_replace</function>.
+ <function>ereg_replace</function>,
+ <function>eregi_replace</function>,
+ <function>stripos</function> e
+ <function>stristr</function>.
</para>
</refsect1>
</refentry>