Search code examples
phppdomedoo

PHP Medoo - num rows


Is it possible to get number of selected rows using Medoo? I havent found anything about it in the documentation.

Like num_rows() in mysqli or rowCount in pdo.


Solution

  • Answered on official Github ticket #195

    https://github.com/catfan/Medoo/issues/195

    If you are using medoo->select you can use count to check the size of the returned array: http://php.net/manual/en/function.count.php