note 85953 deleted from control-structures.foreach by googleguy
| From: | googleguy@php.net | Date: | Wed, 14 Nov 2012 22:29:54 +0000 |
| Subject: | note 85953 deleted from control-structures.foreach by googleguy | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191968@lists.php.net to get a copy of this message | ||
Note Submitter: Robin Leffmann
----
It should be noted that when using foreach to pass an array's key ($key => $value), the key
must be a string and not binary content - containing 0's, f.e., as was my case when i used
foreach to parse bencoded data handed back to me from a bittorrent tracker scraping - as this will
throw foreach off and hand you a key that is binary different than the actual content of the array.