PHP : Function Reference : Ncurses Terminal Screen Control Functions : ncurses_beep
arplynn
If you want to make the terminal beep on a PHP CLI application without needing the ncurses library, use the following code:
<?php
function cli_beep()
{
echo "\x07";
}
?>
|