- Fixed example

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@131847 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Derick Rethans 2003-06-16 10:44:37 +00:00
parent e46e8e36e5
commit 7dd3846683

View file

@ -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>