PHP code example of soatok / left-pad
1. Go to this page and download the library: Download soatok/left-pad library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
soatok / left-pad example snippets
var_dump(left_pad('foo', 5));
# string(5) " foo"