Toggle navigation
Hot Examples
PT
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Pesquisar
Página Inicial
think
console
output
question
Confirmation
PHP Class think\console\output\question\Confirmation
Inheritance:
extends
think\console\output\Question
Exibir arquivo
Open project: top-think/framework
Public Methods
Method
Description
__construct
(
string
$question
,
boolean
$default
= true,
string
$trueAnswerRegex
= '/^y/i' )
构造方法
Private Methods
Method
Description
getDefaultNormalizer
( ) :
callable
获取默认的答案回调
Method Details
__construct()
public
method
构造方法
public
__construct
(
string
$question
,
boolean
$default
= true,
string
$trueAnswerRegex
= '/^y/i' )
$question
string
问题
$default
boolean
默认答案
$trueAnswerRegex
string
验证正则