<html>
<body>
$str = "Hello World";
echo str_pad($str,20,".",STR_PAD_LEFT);
</body>
<!-- Mirrored from www.w3schools.com/php7/phptryit.asp?filename=tryphp_func_string_str_pad2 by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:41:45 GMT -->
</html>