note 78275 added to function.array-keys

From: Date: Fri, 05 Oct 2007 01:43:50 +0000
Subject: note 78275 added to function.array-keys
Groups: php.notes 
Request: Send a blank email to php-notes+get-131108@lists.php.net to get a copy of this message
An alternative to RQuadling at GMail dot com's array_remove() function: <?php function array_remove(array $array, $value, $strict=false) { return array_diff_key($array, array_flip(array_keys($array, $value, $strict))); } ?> ---- Server IP: 203.89.181.186 Probable Submitter: 60.234.168.92 ---- Manual Page -- http://www.php.net/manual/en/function.array-keys.php Edit -- https://master.php.net/note/edit/78275 Del: integrated -- https://master.php.net/note/delete/78275/integrated Del: useless -- https://master.php.net/note/delete/78275/useless Del: bad code -- https://master.php.net/note/delete/78275/bad+code Del: spam -- https://master.php.net/note/delete/78275/spam Del: non-english -- https://master.php.net/note/delete/78275/non-english Del: in docs -- https://master.php.net/note/delete/78275/in+docs Del: other reasons-- https://master.php.net/note/delete/78275 Reject -- https://master.php.net/note/reject/78275 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#131108) next »