Re: What is meant by this code?
| From: | Lester Caine | Date: | Sun, 01 Feb 2015 13:12:33 +0000 |
| Subject: | Re: What is meant by this code? | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324369@lists.php.net to get a copy of this message | ||
On 01/02/15 00:39, Abdul Abdul wrote:
> Thanks for your reply. What is confusing me most is:
>
> $exif as $key => $section
>
> I understood the foreach from the manual, and we have to have a key/value.
> But, what is =>?
Others have commented - lost in the debate on top posting.
My way of reading this is the top level of the 'array' $exif is scanned
and provides a list of $key values, the content of which are copied (=>)
to $section
Each pass through foreach will read a top level entry from $exif and opy
the key name to $key and the content of that to $section.
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk