> But AFAIK (and see ;)), variables in PHP
> in fact are never private, but always
> public, at least within the current script.
This is correct, all functions and variables inside a class are public.
There are no protected nor private func's / var's.
> So what would be the sense in having
> t
HI,
as far as i know private vars should be available in the next release of
the zend engine, thus, using get and set functions is a good practice to be
sure that your apps will still function in future php releases.
Regrads.
___
Hassan El Forkan
Hi there!
I'm just starting to get in touch with
oo programming in PHP. Now I've got a
quite simple question, I guess...
In an example in the PHP-help, I found
a class definition with accessor functions
like
dummy->get_some_variable();
But AFAIK (and see ;)), variables in PHP
in fact are nev
3 matches
Mail list logo