note 88888 added to function.array-splice
| From: | dead dot screamer at seznam dot cz | Date: | Thu, 12 Feb 2009 09:51:22 +0000 |
| Subject: | note 88888 added to function.array-splice | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-150560@lists.php.net to get a copy of this message | ||
I made this a bit better version of plintus' (plintus at smtp dot ru 14-Apr-2003 10:59)
function now:
<?php
function array_KSlice($array, $offset, $length=0)
{
return array_Combine(
array_Slice(array_Keys($array),$offset,$length),
array_Slice(array_Values($array),$offset,$length)
);
}
?>
----
Server IP: 212.24.129.51
Probable Submitter: 82.142.89.49
----
Manual Page -- http://www.php.net/manual/en/function.array-splice.php
Edit -- https://master.php.net/note/edit/88888
Del: integrated -- https://master.php.net/note/delete/88888/integrated
Del: useless -- https://master.php.net/note/delete/88888/useless
Del: bad code -- https://master.php.net/note/delete/88888/bad+code
Del: spam -- https://master.php.net/note/delete/88888/spam
Del: non-english -- https://master.php.net/note/delete/88888/non-english
Del: in docs -- https://master.php.net/note/delete/88888/in+docs
Del: other reasons-- https://master.php.net/note/delete/88888
Reject -- https://master.php.net/note/reject/88888
Search -- https://master.php.net/manage/user-notes.php