note 104786 deleted from function.array-fill-keys by danbrown
| From: | danbrown@php.net | Date: | Thu, 07 Jul 2011 13:27:04 +0000 |
| Subject: | note 104786 deleted from function.array-fill-keys by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181320@lists.php.net to get a copy of this message | ||
Note Submitter: sanjuro at 1up-games dot com
----
And the same as:
<?php
// with the E_NOTICE message
foreach($keys as $v) {settype($v, 'string'); $a[$v]='banana';}
// without
foreach($keys as $v) {$a[(string)$v]='banana';}
?>