note 70411 added to function.array-walk-recursive

From: Date: Sun, 15 Oct 2006 20:46:46 +0000
Subject: note 70411 added to function.array-walk-recursive
Groups: php.notes 
Request: Send a blank email to php-notes+get-118552@lists.php.net to get a copy of this message
To egingell at sisna dot com: There is a small bug in your function, the following line should be changed: From: if ($value != $saved_value || $saved_key != $key) { Into: if ($value !== $saved_value || $saved_key !== $key) { It's a nice function, because I was searching for something to change the keys of a multiple dimension array. ---- Server IP: 194.109.193.119 Probable Submitter: 82.215.27.55 ---- Manual Page -- http://www.php.net/manual/en/function.array-walk-recursive.php Edit -- https://master.php.net/note/edit/70411 Del: integrated -- https://master.php.net/note/delete/70411/integrated Del: useless -- https://master.php.net/note/delete/70411/useless Del: bad code -- https://master.php.net/note/delete/70411/bad+code Del: spam -- https://master.php.net/note/delete/70411/spam Del: non-english -- https://master.php.net/note/delete/70411/non-english Del: in docs -- https://master.php.net/note/delete/70411/in+docs Del: other reasons-- https://master.php.net/note/delete/70411 Reject -- https://master.php.net/note/reject/70411 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118552) next »