medoo::count PHP Méthode

count() public méthode

public count ( $table, $join = null, $column = null, $where = null )
    public function count($table, $join = null, $column = null, $where = null)
    {
        $query = $this->query($this->select_context($table, $join, $column, $where, 'COUNT'));
        return $query ? 0 + $query->fetchColumn() : false;
    }

Usage Example

Exemple #1
0
 /**
  * @param      $table
  * @param null $where
  * @return int
  */
 public function count($table, $where = NULL)
 {
     if (empty($this->_reader)) {
         return $this->_writer->count($table, $where);
     } else {
         return $this->_reader->count($table, $where);
     }
 }
All Usage Examples Of medoo::count