mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Example missing some output.
Fix for bug#49395 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@287845 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
6e6a7b535a
commit
0184ad5ac0
1 changed files with 9 additions and 6 deletions
|
@ -247,8 +247,9 @@ preg_match_all("/(<([\w]+)[^>]*>)(.*?)(<\/\\2>)/", $html, $matches, PREG_SET_ORD
|
|||
foreach ($matches as $val) {
|
||||
echo "matched: " . $val[0] . "\n";
|
||||
echo "part 1: " . $val[1] . "\n";
|
||||
echo "part 2: " . $val[3] . "\n";
|
||||
echo "part 3: " . $val[4] . "\n\n";
|
||||
echo "part 2: " . $val[2] . "\n";
|
||||
echo "part 3: " . $val[3] . "\n";
|
||||
echo "part 4: " . $val[4] . "\n\n";
|
||||
}
|
||||
?>
|
||||
]]>
|
||||
|
@ -258,13 +259,15 @@ foreach ($matches as $val) {
|
|||
<![CDATA[
|
||||
matched: <b>bold text</b>
|
||||
part 1: <b>
|
||||
part 2: bold text
|
||||
part 3: </b>
|
||||
part 2: b
|
||||
part 3: bold text
|
||||
part 4: </b>
|
||||
|
||||
matched: <a href=howdy.html>click me</a>
|
||||
part 1: <a href=howdy.html>
|
||||
part 2: click me
|
||||
part 3: </a>
|
||||
part 2: a
|
||||
part 3: click me
|
||||
part 4: </a>
|
||||
]]>
|
||||
</screen>
|
||||
</example>
|
||||
|
|
Loading…
Reference in a new issue