D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
alt
/
php55
/
usr
/
share
/
doc
/
pear
/
ConsoleTools
/
docs
/
Filename :
tutorial_example_14_dialog_yesnoquestion.php
back
Copy
<?php require_once 'tutorial_autoload.php'; $output = new ezcConsoleOutput(); $question = ezcConsoleQuestionDialog::YesNoQuestion( $output, "Do you want to proceed?", "y" ); do { echo "\nSome action performed...\n\n"; } while ( ezcConsoleDialogViewer::displayDialog( $question ) !== "n" ); echo "Goodbye!\n"; ?>