•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 374,616 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,277 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 170 | Replies: 1
•
•
Join Date: Feb 2008
Location: Ottawa, Ontario
Posts: 15
Reputation:
Rep Power: 1
Solved Threads: 3
I have noticed that some people use public/ private for their vars and functions. I tried looking it up on php.net and then here, but only found one explanation of it on the C++ board. It says that if you declare private var then it is only accessible by that class and public is by everyone.. does the same hold true in php? and what about when someone declares private/ public function?
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- public vs private (Java)
- Java or PHP? (IT Technologies and Trends)
- PHP, ASP, ColdFusion, what's your fav? (IT Technologies and Trends)
- Features in PHP 5 (PHP)
- embPerl or PHP (Perl)
Other Threads in the PHP Forum
- Previous Thread: phpbb3
- Next Thread: Initialization of an Array



Threaded Mode