Coroutine\MySQL\Statement->fetch

最后更新于:2022-04-02 06:29:03

# Coroutine\\MySQL\\Statement->fetch [TOC] > Ver >=`4.0-rc1`, 需在`connect`时加入`fetch_mode => true`选项 从结果集中获取下一行 ~~~ function Coroutine\MySQL->fetch() : ?array ~~~ ### 示例 ~~~ $stmt = $db->prepare('SELECT * FROM ckl LIMIT 1'); $stmt->execute(); while($ret = $stmt->fetch()) { var_dump($ret); } ~~~
';