note 30873 added to function.array-push

From: Date: Tue, 01 Apr 2003 19:54:51 +0000
Subject: note 30873 added to function.array-push
Groups: php.notes 
Request: Send a blank email to php-notes+get-46092@lists.php.net to get a copy of this message
The entry of "12-Dec" re: use of the term "stack" vs. "queue" should be deleted. This note is entirely wrong and apt to mislead the naive. The difference between a stack and a queue is that a stack adds and removes at the same end, while a queue adds at one end and removes from the other. As for any underlying data structure, such as an array: whether an implementation of "push" operates on the top/bottom/front/back of that data structure is entirely arbitrary. ~mark -- http://www.php.net/manual/en/function.array-push.php http://master.php.net/manage/user-notes.php?action=edit+30873 http://master.php.net/manage/user-notes.php?action=delete+30873 http://master.php.net/manage/user-notes.php?action=reject+30873

« previous php.notes (#46092) next »