|
Posted by Rik on 06/14/06 12:13
Jerry Stuckle wrote:
> Yes, you should treat the array as private, even in PHP 4 where you
> can't
> declare it such. One of the purposes of OO is to hide implementation
> details - such as your data members.
>
> The following (slightly modified from your previous post) works for
> me on PHP 5.1.2:
>
> <snip code>
That's what I tried, but PHP4 has thsi to say about thes second ->:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR, expecting ',' or
';'
PHP5 indeed handles this with no problems.
Maybe this has something to do with returning by reference?
Grtz,
--
Rik Wasmus
[Back to original message]
|