note 53590 deleted from function.array-slice by cmb
| From: | cmb@php.net | Date: | Sun, 29 Dec 2019 12:32:58 +0000 |
| Subject: | note 53590 deleted from function.array-slice by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-213711@lists.php.net to get a copy of this message | ||
Note Submitter: liz at matrixmailing dot com
----
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;
?>