Home > PHP > Function > OCI8 > OCI-Collection->trim()

OCI-Collection->trim()

OCI-Collection->trim - Trims elements from the end of the collection

Syntax

bool OCI-Collection->trim (int $num)

Arguments

  • num - The number of elements to be trimmed.

Description

Trims num of elements from the end of the collection.

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

Returns TRUE on success or FALSE on failure.