Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001092

Re: [PHP] Protecting variables and functions? Like C# From: Tim (infoz <email protected>)
Date: 09/19/01

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.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>