RE: [PHP] OO code and private functions
| From: | Cal Evans | Date: | Fri, 16 Aug 2002 14:59:32 +0000 |
| Subject: | RE: [PHP] OO code and private functions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-112967@lists.php.net to get a copy of this message | ||
not yet (Zend engine 2.0 I believe has this) Currently the convention is to
name private functions _* (variables the same) This denotes to other coders
that you intended this to be a private function.
=C=
*
* Cal Evans
* The Virtual CIO
* http://www.calevans.com
*
-----Original Message-----
From: Richard Black [mailto:rblack@datavisibility.co.uk]
Sent: Friday, August 16, 2002 9:24 AM
To: Php-General
Subject: [PHP] OO code and private functions
Can I make a function private in PHP, so that it can only be called from
within an object of that class???
Just discovering the wonders of OO PHP... :-)
==========================================
Richard Black
Systems Programmer, DataVisibility Ltd - http://www.datavisibility.com
Tel: 0141 435 3504
Email: rblack@datavisibility.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php