note 125531 added to function.array-push

From: Date: Sat, 21 Nov 2020 19:05:12 +0000
Subject: note 125531 added to function.array-push
Groups: php.notes 
Request: Send a blank email to php-notes+get-215879@lists.php.net to get a copy of this message
A common operation when pushing a value onto a stack is to address the value at the top of the stack. This can be done easily using the 'end' function: <?php $top=end($stack); ?> Note: See the 'end' function for details about its side effect on the seldom used internal array pointer. ---- Server IP: 45.112.84.4 Probable Submitter: 185.85.3.174 (proxied: 98.2.238.89) ---- Manual Page -- http://php.net/manual/en/function.array-push.php Edit -- https://master.php.net/note/edit/125531 Del: integrated -- https://master.php.net/note/delete/125531/integrated Del: useless -- https://master.php.net/note/delete/125531/useless Del: bad code -- https://master.php.net/note/delete/125531/bad+code Del: spam -- https://master.php.net/note/delete/125531/spam Del: non-english -- https://master.php.net/note/delete/125531/non-english Del: in docs -- https://master.php.net/note/delete/125531/in+docs Del: other reasons-- https://master.php.net/note/delete/125531 Reject -- https://master.php.net/note/reject/125531 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#215879) next »