private function limit($limit = 0) {
        if(is_array($limit) && !empty(array_filter($limit))) {
            foreach($limit as $start => $end) {
                 return " LIMIT ".intval($start).", ".intval($end);
            }
        }
        elseif((int)$limit > 0) {
            return " LIMIT ".intval($limit);
        }
        return false;
    }
private function limit($limit = 0) {
        if(is_array($limit) && !empty(array_filter($limit))) {
            foreach($limit as $start => $end) {
                 return " LIMIT ".intval($start).", ".intval($end);
            }
        }
        elseif((int)$limit > 0) {
            return " LIMIT ".intval($limit);
        }
        return false;
    }
private function limit ( $ limit = 0 ) { if ( is_array ( $ limit ) && ! empty ( array_filter ( $ limit ) ) ) { foreach ( $ limit as $ start => $ end ) { return " LIMIT " . intval ( $ start ) . ", " . intval ( $ end ) ; } } elseif ( ( int ) $ limit > 0 ) { return " LIMIT " . intval ( $ limit ) ; } return false ; }
Returns the limit SQL for the current query as a string
@param integer|array $limit This should either be set as an integer or should be set as an array with a start and end value
@return string|false Will return the LIMIT string for the current query if it is valid else returns false
Returns the limit SQL for the current query as a string