mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 06:15:19 +08:00
Global DOCS update: ~~~ replaced with ```
This commit is contained in:
@ -16,7 +16,7 @@ use yii\base\InvalidCallException;
|
||||
* returns all the rows in a single array. Rows of data can also be read by
|
||||
* iterating through the reader. For example,
|
||||
*
|
||||
* ~~~
|
||||
* ```php
|
||||
* $command = $connection->createCommand('SELECT * FROM post');
|
||||
* $reader = $command->query();
|
||||
*
|
||||
@ -31,7 +31,7 @@ use yii\base\InvalidCallException;
|
||||
*
|
||||
* // equivalent to:
|
||||
* $rows = $reader->readAll();
|
||||
* ~~~
|
||||
* ```
|
||||
*
|
||||
* Note that since DataReader is a forward-only stream, you can only traverse it once.
|
||||
* Doing it the second time will throw an exception.
|
||||
|
Reference in New Issue
Block a user