max() static public méthode

Gets the maximum value in a column of a table
static public max ( string $table, string $column, mixed $where = null ) : mixed
$table string The table name
$column string The name of the column
$where mixed Either a key/value array as AND connected where clause or a simple MySQL where clause string
Résultat mixed
Exemple #1
0
 public function testMax()
 {
     $this->assertEquals(3, db::max('users', 'id'));
 }