How do i lock a variable in a class
View Single Post
04-20-2008, 09:04 PM
Join Date: Feb 2008
the return is used for reading, you asked about changing it's value?
Well, you can't 'lock' a variable to read only inside a class.
It is supposed that a class is a totally separate entity and you are the one who read/write class's properties unless you don't trust yourself :)
- My PBB Game
- My Blog "Gaming With PHP"
View Public Profile
Send a private message to freenity
Visit freenity's homepage!
Find More Posts by freenity