note 53590 added to function.array-slice
| From: | liz at matrixmailing dot com | Date: | Mon, 06 Jun 2005 21:16:45 +0000 |
| Subject: | note 53590 added to function.array-slice | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90026@lists.php.net to get a copy of this message | ||
For those with PHP < 5.0.2, and have a number as your array key, to avoid having the key reset
with array_slice, add a blank character to the beginning or end of the key.
<?
$array[" ".$key] = $value;
?>
----
Manual Page -- http://www.php.net/manual/en/function.array-slice.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53590
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53590&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53590&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53590&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53590&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53590&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53590&report=yes
Search -- http://master.php.net/manage/user-notes.php