PHP code example of zhukmax / stringpad
1. Go to this page and download the library: Download zhukmax/stringpad 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/ */
zhukmax / stringpad example snippets
ukmax\StringPad;
echo StringPad::left(5, 6, 0); // => 000005
echo StringPad::right('b', 5, 'a'); // => baaaa