<?php$str1 = "Hello";$str2 = "Hello world!";printf("[%s]<br>",$str1); // Stringprintf("[%8s]<br>",$str1); // Right-justifies the string with spacesprintf("[%-8s]<br>",$str1); // Left-justifies the string value with spacesprintf("[%08s]<br>",$str1); // Zero-paddingprintf("[%'*8s]<br>",$str1); // Adds "*"<br>printf("[%8.8s]<br>",$str2); // Left-justifies the string with spaces (cuts off characters after the specified value)?>