kouber          Tue Apr  3 16:26:07 2007 UTC

  Modified files:              
    /phpdoc/en/reference/strings/functions      wordwrap.xml 
  Log:
  Wrong parameter type in examples
  
http://cvs.php.net/viewvc.cgi/phpdoc/en/reference/strings/functions/wordwrap.xml?r1=1.13&r2=1.14&diff_format=u
Index: phpdoc/en/reference/strings/functions/wordwrap.xml
diff -u phpdoc/en/reference/strings/functions/wordwrap.xml:1.13 
phpdoc/en/reference/strings/functions/wordwrap.xml:1.14
--- phpdoc/en/reference/strings/functions/wordwrap.xml:1.13     Fri Aug 20 
09:37:00 2004
+++ phpdoc/en/reference/strings/functions/wordwrap.xml  Tue Apr  3 16:26:07 2007
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.13 $ -->
+<!-- $Revision: 1.14 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.142 -->
   <refentry id="function.wordwrap">
    <refnamediv>
@@ -31,7 +31,7 @@
      are not given.
     </para>
     <para>
-     If the <parameter>cut</parameter> is set to 1, the string is
+     If the <parameter>cut</parameter> is set to &true;, the string is
      always wrapped at the specified width. So if you have a word
      that is larger than the given width, it is broken apart.
      (See second example).
@@ -71,7 +71,7 @@
 <![CDATA[
 <?php
 $text = "A very long woooooooooooord.";
-$newtext = wordwrap($text, 8, "\n", 1);
+$newtext = wordwrap($text, 8, "\n", true);
 
 echo "$newtext\n";
 ?>

Reply via email to