ManaPHP\DbInterface::fetchAll PHP 메소드

fetchAll() 공개 메소드

$db->fetchAll('SELECT * FROM city'); $db->fetchAll('SELECT * FROM city WHERE city_id <:city_id',['city_id'=>5]);
public fetchAll ( string $sql, array $bind = [], integer $fetchMode = PDO::FETCH_ASSOC ) : array
$sql string
$bind array
$fetchMode integer
리턴 array
    public function fetchAll($sql, $bind = [], $fetchMode = \PDO::FETCH_ASSOC);