note 78873 added to function.array-pop

From: Date: Wed, 31 Oct 2007 12:37:25 +0000
Subject: note 78873 added to function.array-pop
Groups: php.notes 
Request: Send a blank email to php-notes+get-131860@lists.php.net to get a copy of this message
I had a problem when using this function because my array was made up entirley of numbers, so I have made my own function. Hopefully it will be useful to somebody. function array_trim_end($array){ $num=count($array); $num=$num-1; unset($array[$num]); return $array; } ---- Server IP: 194.145.210.3 Probable Submitter: 77.101.83.157 ---- Manual Page -- http://www.php.net/manual/en/function.array-pop.php Edit -- https://master.php.net/note/edit/78873 Del: integrated -- https://master.php.net/note/delete/78873/integrated Del: useless -- https://master.php.net/note/delete/78873/useless Del: bad code -- https://master.php.net/note/delete/78873/bad+code Del: spam -- https://master.php.net/note/delete/78873/spam Del: non-english -- https://master.php.net/note/delete/78873/non-english Del: in docs -- https://master.php.net/note/delete/78873/in+docs Del: other reasons-- https://master.php.net/note/delete/78873 Reject -- https://master.php.net/note/reject/78873 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131860) next »