Re: What is meant by this code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
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@xxxxxxxxxxxx
>
>
>
>
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux