PHP code example of air-petr / php-console-cleaner
1. Go to this page and download the library: Download air-petr/php-console-cleaner 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/ */
air-petr / php-console-cleaner example snippets
use AirPetr\ConsoleCleaner;
$cleaner = new ConsoleCleaner();
echo "Line 1\n";
// -> Line 1
echo "Line 2\n";
// -> Line 1
// -> Line 2
$numberOfLinesToClean = 1;
$cleaner->clean($numberOfLinesToClean);
// -> Line 1
shell
php demo/index.php
php demo/timer.php