PHP code example of alexsoft / leftpad
1. Go to this page and download the library: Download alexsoft/leftpad 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/ */
alexsoft / leftpad example snippets
\Alexsoft\Leftpad\leftpad('foo', 5) // => " foo"
\Alexsoft\Leftpad\leftpad('1', 3, '0') // => "001"