note 64122 added to function.array-slice

From: Date: Fri, 07 Apr 2006 21:01:24 +0000
Subject: note 64122 added to function.array-slice
Groups: php.notes 
Request: Send a blank email to php-notes+get-107546@lists.php.net to get a copy of this message
Array slice function that works with associative arrays (keys): function array_slice_assoc($array,$keys) { return array_intersect_key($array,array_flip($keys)); } ---- Server IP: 216.194.113.175 Probable Submitter: 68.165.149.2 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.array-slice.php Edit -- http://master.php.net/note/edit/64122 Del: integrated -- http://master.php.net/note/delete/64122/integrated Del: useless -- http://master.php.net/note/delete/64122/useless Del: bad code -- http://master.php.net/note/delete/64122/bad+code Del: spam -- http://master.php.net/note/delete/64122/spam Del: non-english -- http://master.php.net/note/delete/64122/non-english Del: in docs -- http://master.php.net/note/delete/64122/in+docs Del: other reasons-- http://master.php.net/note/delete/64122 Reject -- http://master.php.net/note/reject/64122 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#107546) next »