Curry
PHP Framework

core

db

html

utility

SqlSelect::fetchAll

public array fetch ()
クエリ結果を1行取得します。

例:
class UserController extend Controller
{
    public function index()
    {
        $sel = $this->model('User')->select()->limit(10);
        $sel->execute();

        while ($row = $sel->fetch()) {
            // $rowを使った処理
        }
    }
}

パラメーター

名前 内容

返り値

クエリ結果の行の配列