hirokawa Sat Jan 26 10:37:56 2002 EDT
Modified files:
/phpdoc/en/functions oracle.xml pcre.xml
Log:
fixed typos.
Index: phpdoc/en/functions/oracle.xml
diff -u phpdoc/en/functions/oracle.xml:1.27 phpdoc/en/functions/oracle.xml:1.28
--- phpdoc/en/functions/oracle.xml:1.27 Tue Dec 18 15:21:08 2001
+++ phpdoc/en/functions/oracle.xml Sat Jan 26 10:37:56 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.27 $ -->
+<!-- $Revision: 1.28 $ -->
<reference id="ref.oracle">
<title>Oracle functions</title>
<titleabbrev>Oracle</titleabbrev>
@@ -514,7 +514,9 @@
<parameter>user</parameter> like this:
<informalexample>
<programlisting role="php">
+<![CDATA[
$conn = Ora_Logon("user<emphasis>@TNSNAME</emphasis>", "pass");
+]]>
</programlisting>
</informalexample>
</para>
Index: phpdoc/en/functions/pcre.xml
diff -u phpdoc/en/functions/pcre.xml:1.70 phpdoc/en/functions/pcre.xml:1.71
--- phpdoc/en/functions/pcre.xml:1.70 Mon Jan 21 14:29:22 2002
+++ phpdoc/en/functions/pcre.xml Sat Jan 26 10:37:56 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.70 $ -->
+<!-- $Revision: 1.71 $ -->
<reference id="ref.pcre">
<title>Regular Expression Functions (Perl-Compatible)</title>
<titleabbrev>PCRE</titleabbrev>
@@ -211,7 +211,7 @@
"<b>example: </b><div align=left>this is a test</div>",
$out, PREG_PATTERN_ORDER);
print $out[0][0].", ".$out[0][1]."\n";
-print $out[1][0].", ".$out[1][1]."\n"
+print $out[1][0].", ".$out[1][1]."\n";
]]>
</programlisting>
<para>
@@ -239,7 +239,7 @@
<informalexample>
<programlisting role="php">
<![CDATA[
-preg_match_all ("|<;[^>]+>(.*)</[^>]+>|U",
+preg_match_all ("|<[^>]+>(.*)</[^>]+>|U",
"<b>example: </b><div align=left>this is a test</div>",
$out, PREG_SET_ORDER);
print $out[0][0].", ".$out[0][1]."\n";
@@ -293,15 +293,15 @@
// it must match the second set of parentheses in the regular expression
// itself, which would be the ([\w]+) in this case. The extra backslash is
// required because the string is in double quotes.
-$html = "<b>bold text</b><a href=howdy.html>click me</a>
+$html = "<b>bold text</b><a href=howdy.html>click me</a>;
preg_match_all ("/(<([\w]+)[^>]*>)(.*)(<\/\\2>)/", $html, $matches);
for ($i=0; $i< count($matches[0]); $i++) {
-echo "matched: ".$matches[0][$i]."\n";
-echo "part 1: ".$matches[1][$i]."\n";
-echo "part 2: ".$matches[3][$i]."\n";
-echo "part 3: ".$matches[4][$i]."\n\n";
+ echo "matched: ".$matches[0][$i]."\n";
+ echo "part 1: ".$matches[1][$i]."\n";
+ echo "part 2: ".$matches[3][$i]."\n";
+ echo "part 3: ".$matches[4][$i]."\n\n";
}
]]>
</programlisting>