note 15124 added to function.array-pop

From: Date: Wed, 29 Aug 2001 01:07:23 +0000
Subject: note 15124 added to function.array-pop
Groups: php.notes 
Request: Send a blank email to php-notes+get-17275@lists.php.net to get a copy of this message
/** * Returns the element on top of the stack. * Intended for use with array_push() and array_pop(). */ function array_top(&$array) { return $array[count($array) - 1]; } http://www.php.net/manual/en/function.array-pop.php

« previous php.notes (#17275) next »