ManaPHP\Mvc\Model::max PHP Метод

max() публичный статический Метод

What is the max robot id? $id = Robots::max(array('column' => 'id')); echo "The max robot id is: ", $id, "\n"; What is the max id of mechanical robots? $sum = Robots::max(array("type='mechanical'", 'column' => 'id')); echo "The max robot id of mechanical robots is ", $id, "\n";
public static max ( string $column, string | array $parameters = null, integer | array $cacheOptions = null ) : mixed
$column string
$parameters string | array
$cacheOptions integer | array
Результат mixed
    public static function max($column, $parameters = null, $cacheOptions = null)
    {
        return self::_groupResult('MAX', 'maximum', $column, $parameters, $cacheOptions);
    }