Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- php oop for dummies
March 20, 2006, 11:31 am
rate this thread
Re: php oop for dummies
It covers all basic usage.
If you are familiar with OOP, which you are since you did C++ and Java, PHP
classes and OOP should be easy.
Remember that PHP is used mostly in webpages, and all objects should be
created within a 'pagesession', and die when request is finished (unless
you take certain precautions).
If you need them to live longer, you'll have to serialize them, store them
somewhere (eg database or $_SESSION), and revive them where needed.
Things like J2EE's ServletContext doesn't exists in PHP, as all runs in a
Hope that helps a bit.
I think you'll have an easy time coming C++ and Java. :-)
Good luck and regards,