You are here: Re: Accessing properties via vars « PHP Language « IT news, forums, messages
Re: Accessing properties via vars

Posted by Janwillem Borleffs on 11/21/96 11:24

Flibble wrote:
> If you look at the property $updatedFields it should end up populated
> with two elements, "Name" & "Age". However they are populated with
> zero values.
> The curious thing is that inside the __set function the property has
> the correct values in it, as soon as it moves outside the method they
> are zero.....Can't see why it is doing this (might be code blind by
> now though :( )
>

On my machine, a print_r on $updateFields produces:

Array
(
[0] => Name
[1] => Age
)

and a print_r on $itemArray produces:

Array
(
[Name] => Me
[Age] => 30
)

So your class appears to work as it should.


JW

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация