mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-20 08:27:21 +08:00
Merge pull request #8893 from Linux2000/master
Update helper-array.md [skip ci]
This commit is contained in:
@@ -240,7 +240,7 @@ ArrayHelper::merge($a, $b);
|
||||
|
||||
```php
|
||||
$posts = Post::find()->limit(10)->all();
|
||||
$data = ArrayHelper::toArray($post, [
|
||||
$data = ArrayHelper::toArray($posts, [
|
||||
'app\models\Post' => [
|
||||
'id',
|
||||
'title',
|
||||
|
||||
Reference in New Issue
Block a user