| 
	
 | 
 Posted by Mladen Gogala on 06/12/68 11:26 
On Sat, 10 Sep 2005 20:25:55 -0500, Jerry Stuckle wrote: 
 
> Mladen, 
>  
> No, private methods are different.  C doesn't have classes, so it can't  
> have class members. 
 
Jerry, of course C doesn't have classes. C isn't an OO language while PHP 
is. Also, strictly speaking, there is no linking of PHP scripts, so the 
notion of a symbol local for an object file is not easy to translate to 
PHP. The best thing to do, if he wants to hide functions from the outside 
world, is to use private methods. Yes, that implies classes. PHP and 
C are different to that extent that you can't really compare them feature 
by feature so we have to think outside the box and come up with the best 
functional match. And that is a private method. 
 
--  
http://www.mgogala.com
 
  
Navigation:
[Reply to this message] 
 |