$list = 数据库select出来的文章;
$date = '';
foreach ($list as $item) {
if ($date != $item['文章日期']) {
echo '日笺';
$date = $item['文章日期'];
}
echo '文章';
}
自已写foreach 控制
感觉好处不大,只是包多一层
[2016-12-27 13:08:01] local.ERROR: SymfonyComponentProcessExceptionRuntimeException: The Process class relies on proc_open, which is not available on your PHP installation. in /data/wwwroot/vip.ouyuzr.com/vendor/symfony/process/Process.php:150
Stack trace:
这个是什么错来的??
Route::group(['middleware' => ['auth:api']], function () {
Route::get('/test', function (Request $request) {
return response()->json(['name' => 'test']);
});
});
我这样子写不对的,访问不了
/test
这个是什么主题 phpstorm