swoole,workerman 中的定时器,我们用起来很方便。 // swoole Swoole\Timer::tick(int $msec, callable $callback_function, ...$params): int // workerman int \...
今天看了下之前同事写的一个功能,一个class中也就32个方法 [图片]当我折叠了代码,总感觉哪里不对劲,又整体看了一下,好像都没有注释,不过也还好,看到传递的参数名,...
/** * 根据班次 获取时间段 09:00 - 18:00 * start 09:00, * end 18:00 * duration 时长 min * freeTime 每时段间隔多少分钟 * */ function getChunkTimeList($st...
有点模糊,PHP 什么时候封装成类、什么时候封装成方法,什么时候封装成函数?
安装 composer require fzaninotto/faker 可通过在 config/app.php 增加如下配置使其支持中文: 'faker_locale' => 'zh_CN', 基本用法 Faker\Provider\Base 基本 $ran...
社交账号:
我要举报该,理由是: