mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
- Fixed example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@131847 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
e46e8e36e5
commit
7dd3846683
1 changed files with 3 additions and 8 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.7 $ -->
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- splitted from ./en/functions/strings.xml, last change in rev 1.142 -->
|
||||
<refentry id="function.wordwrap">
|
||||
<refnamediv>
|
||||
|
@ -48,7 +48,7 @@
|
|||
<![CDATA[
|
||||
<?php
|
||||
$text = "The quick brown fox jumped over the lazy dog.";
|
||||
$newtext = wordwrap( $text, 20 );
|
||||
$newtext = wordwrap($text, 20);
|
||||
|
||||
echo "$newtext\n";
|
||||
?>
|
||||
|
@ -60,9 +60,7 @@ echo "$newtext\n";
|
|||
<screen>
|
||||
<![CDATA[
|
||||
The quick brown fox
|
||||
|
||||
jumped over the
|
||||
|
||||
lazy dog.
|
||||
]]>
|
||||
</screen>
|
||||
|
@ -73,7 +71,7 @@ lazy dog.
|
|||
<![CDATA[
|
||||
<?php
|
||||
$text = "A very long woooooooooooord.";
|
||||
$newtext = wordwrap( $text, 8, "\n", 1);
|
||||
$newtext = wordwrap($text, 8, "\n", 1);
|
||||
|
||||
echo "$newtext\n";
|
||||
?>
|
||||
|
@ -85,11 +83,8 @@ echo "$newtext\n";
|
|||
<screen>
|
||||
<![CDATA[
|
||||
A very
|
||||
|
||||
long
|
||||
|
||||
wooooooo
|
||||
|
||||
ooooord.
|
||||
]]>
|
||||
</screen>
|
||||
|
|
Loading…
Reference in a new issue