1. Go to this page and download the library: Download lightster/named-sprintf 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/ */
$sprintf = new Sprintf();
echo $sprintf->sprintf(
"PI is approximately %(pi).5f, or %(pi).8f if you need more accuracy\n",
['pi' => pi()]
);
echo $sprintf->sprintf(
"The type is optional and defaults to string (e.g. 's'): %(name)\n",
['name' => 'Typeless!']
);