Folders renumbered

Folders renumbered
This commit is contained in:
RobinNixon
2020-12-10 13:35:00 +00:00
parent d0519f0697
commit e311e3750d
153 changed files with 2 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
<?php
echo "<pre>"; // Enables viewing of the spaces
$h = 'Rasmus';
printf("[%s]\n", $h); // Standard string output
printf("[%12s]\n", $h); // Right justify with spaces
printf("[%-12s]\n", $h); // Left justify with spaces
printf("[%012s]\n", $h); // Zero padding
printf("[%'#12s]\n\n", $h); // Use the custom padding character '#'
$d = 'Rasmus Lerdorf';
printf("[%12.8s]\n", $d); // Right justify, cutoff of 8 characters
printf("[%-12.12s]\n", $d); // Left justify, cutoff of 12 characters
printf("[%-'@12.10s]\n", $d); // Left justify, pad '@', cutoff 10 chars
?>