philip          Fri Jul  4 19:13:02 2003 EDT

  Modified files:              
    /phpdoc/en/reference/strings/functions      str-pad.xml 
  Log:
  Added example to reflect #21318, and minor changes.
  
  
Index: phpdoc/en/reference/strings/functions/str-pad.xml
diff -u phpdoc/en/reference/strings/functions/str-pad.xml:1.4 
phpdoc/en/reference/strings/functions/str-pad.xml:1.5
--- phpdoc/en/reference/strings/functions/str-pad.xml:1.4       Fri Jul  4 18:08:05 
2003
+++ phpdoc/en/reference/strings/functions/str-pad.xml   Fri Jul  4 19:13:02 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.26 -->
   <refentry id="function.str-pad">
    <refnamediv>
@@ -46,6 +46,7 @@
 print str_pad($input, 10);                      // produces "Alien     "
 print str_pad($input, 10, "-=", STR_PAD_LEFT);  // produces "-=-=-Alien"
 print str_pad($input, 10, "_", STR_PAD_BOTH);   // produces "__Alien___"
+print str_pad($input, 6 , "___");               // produces "Alien_"
 ?>
 ]]>
       </programlisting>
@@ -54,8 +55,8 @@
     <note>
      <para>
       The <parameter>pad_string</parameter> may be truncated if the
-      required number of padding characters can't be evenly diveded by
-      the padding strings length.
+      required number of padding characters can't be evenly divided by
+      the <parameter>pad_string</parameter>'s length.
      </para>
     </note>
    </refsect1>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to