note 93872 added to function.array-push

From: Date: Mon, 05 Oct 2009 01:44:57 +0000
Subject: note 93872 added to function.array-push
Groups: php.notes 
Request: Send a blank email to php-notes+get-161308@lists.php.net to get a copy of this message
This function "Returns the new number of elements in the array." To find out the last index, use: <?php $count = array_push($array, $value); $last_index = array_pop(array_keys($array)); ?> ---- Server IP: 202.158.52.162 Probable Submitter: 125.167.108.115 ---- Manual Page -- http://www.php.net/manual/en/function.array-push.php Edit -- https://master.php.net/note/edit/93872 Del: integrated -- https://master.php.net/note/delete/93872/integrated Del: useless -- https://master.php.net/note/delete/93872/useless Del: bad code -- https://master.php.net/note/delete/93872/bad+code Del: spam -- https://master.php.net/note/delete/93872/spam Del: non-english -- https://master.php.net/note/delete/93872/non-english Del: in docs -- https://master.php.net/note/delete/93872/in+docs Del: other reasons-- https://master.php.net/note/delete/93872 Reject -- https://master.php.net/note/reject/93872 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#161308) next »