Re: What is meant by this code?
| From: | Abdul Abdul | Date: | Sun, 01 Feb 2015 00:32:11 +0000 |
| Subject: | Re: What is meant by this code? | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-324351@lists.php.net to get a copy of this message | ||
Thsnks Tedd/ For the symbol "=>", how do we read it here? Are we assigning
any values?
On Sat, Jan 31, 2015 at 11:12 AM, Tedd Sperling <carol@earthstones.com>
wrote:
> > ....
> > $exif = exif_read_data($image);
> > foreach ($exif as $key => $section) {
> > foreach ($section as $name => $val) {
> > .....
> > .....
> >
> > What are we doing here in the "foreach"? What is "as"?
>
> This deals with arrays.
>
> > foreach ($exif as $key => $section)
>
> It is an extended for loop -- meaning use array $exif and loop through the
> entire array extracting the keys/indexes (as $key) and values (as $section).
>
> Cheers,
>
> tedd
>
> _______________
> tedd sperling
> tedd@sperling.com
>
>
>
>
>
>