note 3552 deleted from function.count by googleguy

From: Date: Mon, 17 Sep 2012 00:10:45 +0000
Subject: note 3552 deleted from function.count by googleguy
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-190827@lists.php.net to get a copy of this message
Note Submitter: legobuff at hotmail dot com ---- This is taken from sganer@expio.co.nz comments on the sizeof() function: If some elements in your array are not set, then sizeof() and count() will not return the index of the last element, but will return the number of set elements. To find the index of the last element in the array: end($yourArray); $index = key($yourArray); ... Where $yourArray is the array you want to find the last index ($index) of.

« previous php.notes (#190827) next »