dave            Sat Aug  7 13:54:17 2004 EDT

  Modified files:              
    /phpdoc/en/reference/strings/functions      sprintf.xml 
  Log:
  - Add an alternate padding character example.
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/strings/functions/sprintf.xml?r1=1.10&r2=1.11&ty=u
Index: phpdoc/en/reference/strings/functions/sprintf.xml
diff -u phpdoc/en/reference/strings/functions/sprintf.xml:1.10 
phpdoc/en/reference/strings/functions/sprintf.xml:1.11
--- phpdoc/en/reference/strings/functions/sprintf.xml:1.10      Fri Jul 30 01:04:21 
2004
+++ phpdoc/en/reference/strings/functions/sprintf.xml   Sat Aug  7 13:54:17 2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.10 $ -->
+<!-- $Revision: 1.11 $ -->
 <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 -->
   <refentry id="function.sprintf">
    <refnamediv>
@@ -245,6 +245,7 @@
 printf("[%10s]\n",    $s); // right-justification with spaces
 printf("[%-10s]\n",   $s); // left-justification with spaces
 printf("[%010s]\n",   $s); // zero-padding works on strings too
+printf("[%'#10s]\n",  $s); // use the custom padding character '#'
 printf("[%10.10s]\n", $t); // left-justification but with a cutoff of 10 characters
 ?>
 ]]>
@@ -258,6 +259,7 @@
 [    monkey]
 [monkey    ]
 [0000monkey]
+[####monkey]
 [many monke]
 ]]>
      </screen>

Reply via email to