Db\Result\Pdo::fetchArray

public fetchArray ()

Returns an array of strings that corresponds to the fetched row, or FALSE if there are no more rows. This method is affected by the active fetch flag set using Phalcon\Db\Result\Pdo::setFetchMode

$result = $connection->query("SELECT * FROM robots ORDER BY name");
$result->setFetchMode(Phalcon\Db::FETCH_NUM);
while ($robot = result->fetchArray()) {
    print_r($robot);
}
doc_Phalcon
2016-10-16 09:49:52
Comments
Leave a Comment

Please login to continue.