From 3df5d31352310c3cee84f040e0f6f31579d3ed23 Mon Sep 17 00:00:00 2001 From: Rui Hirokawa Date: Sat, 26 Jan 2002 15:37:56 +0000 Subject: [PATCH] fixed typos. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@68749 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/oracle.xml | 4 +++- functions/pcre.xml | 16 ++++++++-------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/functions/oracle.xml b/functions/oracle.xml index fe53b22914..af48b47bb4 100644 --- a/functions/oracle.xml +++ b/functions/oracle.xml @@ -1,5 +1,5 @@ - + Oracle functions Oracle @@ -514,7 +514,9 @@ echo $results[1]; user like this: +@TNSNAME", "pass"); +]]> diff --git a/functions/pcre.xml b/functions/pcre.xml index e1e8cec6ec..34f1e38aca 100644 --- a/functions/pcre.xml +++ b/functions/pcre.xml @@ -1,5 +1,5 @@ - + Regular Expression Functions (Perl-Compatible) PCRE @@ -211,7 +211,7 @@ preg_match_all ("|<[^>]+>(.*)]+>|U", "example:
this is a test
", $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"; ]]> @@ -239,7 +239,7 @@ example: , this is a test ]+>(.*)]+>|U", +preg_match_all ("|<[^>]+>(.*)]+>|U", "example:
this is a test
", $out, PREG_SET_ORDER); print $out[0][0].", ".$out[0][1]."\n"; @@ -293,15 +293,15 @@ preg_match_all ("/\(? (\d{3})? \)? (?(1) [\-\s] ) \d{3}-\d{4}/x", // 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 = "bold textclick me +$html = "bold textclick me; 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"; } ]]>