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";
}
?>
ncurses_beepDescriptionint ncurses_beep ( void )
ncurses_beep() sends an audible alert (bell) and if its not possible flashes the screen. 如果成功则返回 TRUE,失败则返回 FALSE。 See also ncurses_flash()
add a note
User Contributed Notes
arplynn at gmail dot com
22-Jan-2006 04:17
If you want to make the terminal beep on a PHP CLI application without needing the ncurses library, use the following code: | ||||