confirm() public method
Asks user to confirm by typing y or n.
public boolean confirm ( $message, $default = false ) | ||
---|---|---|
$message | string |
To echo out before waiting for user input |
$default | boolean |
This value is returned if no selection is made. |
return | boolean |
Whether user confirmed. Will return true if $interactive is false. |
Please login to continue.