->limit()

->limit()

->limit() -- Set limit

Description

Sets the limit for a query. (this only works on databases that support the LIMIT clause), without parameters, it will clear the current limit.

Parameter

  • int $from - limit start (or number), or blank to reset

  • int $number - limit results to number

Note

This function can not be called statically.

Since postgres and mysql only really support limit directly - calling this on an unsupported database will emit a PEAR::Error and die.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.