Re: Protecting variables and functions? Like C#
| From: | Tim | Date: | Wed, 19 Sep 2001 13:29:16 +0000 |
| Subject: | Re: Protecting variables and functions? Like C# | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-67839@lists.php.net to get a copy of this message | ||
This would certainly be a nice feature to have, especially if you've
done any development with Java or C++ in the past.
Many PHP class authors adopt a convention that variables or functions
that start or end in an underscore ("_") should be treated as private
and used at your own risk, i.e. they may change in a future release of
the class or not work properly/safely when accessed directly.
- Tim
http://www.phptemplates.org
On Wed, 2001-09-19 at 09:00, Emile Bosch wrote:
> I am a huge fan of php but i am kinda scared by c# i really like it's
> ability to make functions and variable not accessible and therefore force
> the user to use a function instead of accessing it indirectly.