Reply to Re: Accessing properties via vars

Your name:

Reply:


Posted by Flibble on 10/06/91 11:25

"Janwillem Borleffs" <jw@jwscripts.com> wrote in news:4307b00b$0$6827
$dbd4d001@news.euronet.nl:

> 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
>
>
>
>

Also found this, sounds like it could possibly be related...alas its a
closed bug :(

http://bugs.php.net/bug.php?id=22237

[Back to original 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

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