note 104786 added to function.array-fill-keys
| From: | sanjuro at 1up-games dot com | Date: | Thu, 07 Jul 2011 09:30:28 +0000 |
| Subject: | note 104786 added to function.array-fill-keys | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-181308@lists.php.net to get a copy of this message | ||
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';}
?>
----
Server IP: 62.237.7.3
Probable Submitter: 91.153.158.54
----
Manual Page -- http://www.php.net/manual/en/function.array-fill-keys.php
Edit -- https://master.php.net/note/edit/104786
Del: integrated -- https://master.php.net/note/delete/104786/integrated
Del: useless -- https://master.php.net/note/delete/104786/useless
Del: bad code -- https://master.php.net/note/delete/104786/bad+code
Del: spam -- https://master.php.net/note/delete/104786/spam
Del: non-english -- https://master.php.net/note/delete/104786/non-english
Del: in docs -- https://master.php.net/note/delete/104786/in+docs
Del: other reasons-- https://master.php.net/note/delete/104786
Reject -- https://master.php.net/note/reject/104786
Search -- https://master.php.net/manage/user-notes.php