PHP 8.1.0 RC 4 available for testing


(PECL pht >= 0.0.1)

pht\Vector::popPops a value to the vector


public pht\Vector::pop(): mixed

This method pops a value from the end of a vector (in constant time). Popping a value from an empty vector will result in an Error exception.

Liste de param├Ętres

Cette fonction ne contient aucun param├Ętre.

Valeurs de retour

The value from the end of the vector.


Exemple #1 Popping a value from a vector


use pht\Vector;

$vector = new Vector();

$vector[] = 2;


L'exemple ci-dessus va afficher :


add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top