-
Notifications
You must be signed in to change notification settings - Fork 48
output instance
Inhere edited this page Jan 10, 2019
·
2 revisions
输出对象是
Inhere\Console\IO\Output的实例
基本输出:
public function write(mixed $messages = '', $nl = true, $quit = false)-
$messagesmixed 要输出的消息。可以是字符串或数组。 -
$nlbool 输出后是否换行。 默认true -
$quitbool|int 输出后是否退出脚本。默认false, 其它值都会转换为int作为退出码(true会转换为 0)。
$output->write('hello');
$output->write(['hello', 'world']);我的其他PHP项目
- inhere/kite 方便本地开发和使用的个人CLI工具应用
- php-toolkit/pflag PHP编写的,通用的命令行标志(选项和参数)解析库
- phppkg/easytpl 使用简单且快速的 PHP 模板引擎
- inhere/php-validate 一个简洁小巧且功能完善的php验证库
- inhere/sroute 轻量且快速的HTTP请求路由库