|
IDatabaseRecordLimit
#Limits the number of records to be returned by the IDatabaseRecord's records() method IntroductionLimits the amount of records to be returned by the IDatabaseRecord's records() method. Must pass an integer. ExamplesLimit results to 5 include_once $_SERVER['DOCUMENT_ROOT'].'/model.php'; $obj = new Articles(); $obj->limit = 5; $arrayCollection = $obj->records(); echo $arrayCollection->length;
|