mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fixed typos.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@68749 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
db97ae16ba
commit
3df5d31352
2 changed files with 11 additions and 9 deletions
|
@ -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 @@ echo $results[1];
|
|||
<parameter>user</parameter> like this:
|
||||
<informalexample>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
$conn = Ora_Logon("user<emphasis>@TNSNAME</emphasis>", "pass");
|
||||
]]>
|
||||
</programlisting>
|
||||
</informalexample>
|
||||
</para>
|
||||
|
|
|
@ -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 @@ preg_match_all ("|<[^>]+>(.*)</[^>]+>|U",
|
|||
"<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 @@ example: , this is a test
|
|||
<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 @@ 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 = "<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>
|
||||
|
|
Loading…
Reference in a new issue