1. Go to this page and download the library: Download forweban/dz2-lib 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/ */
forweban / dz2-lib example snippets
public static function br($n = null)
{
for ($i = 0; $i <= $n; $i++) {
echo "<pre>".PHP_EOL."</pre>";
};
}
Help::br();
Help::br(3);
class Math
{
...
private const PI = '3.1415926535';
/**
* @param float $rad
* @return float|null
*/
public static function getSquareCircle(float $rad): ?float
{
return self::PI * $rad ^ 2;
}
...
}