PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
designer ? Its going to be really tough to get hang of OOP concepts if you're not in the hang of programming.
I would suggest you start with C++ or C# and then get back to PHP because C++ and C# are strictly OOP and not loosely type like PHP and Python which makes it easier to fall back to procedural style if you cant come up with an OOP solution.
anjanesh wrote:designer ? Its going to be really tough to get hang of OOP concepts if you're not in the hang of programming.
I would suggest you start with C++ or C# and then get back to PHP because C++ and C# are strictly OOP and not loosely type like PHP and Python which makes it easier to fall back to procedural style if you cant come up with an OOP solution.
sir i know -> this means pointing something. but can u explane me in details pl
Not true at all. Java is strictly OOP. C++ is just like PHP in the sense that you can program with or without objects.
The PHP Manual is the best place to understand the syntax. The first few chapters teach you the basics of the language, but they do assume that you are already familiar with other programming languages. I agree with anjanesh in that making PHP your first language doesn't make it easy to understand all of the concepts, because PHP doesn't not support it all. It is still growing.
The problem with learning OOP concepts straight from PHP is because of the differences between PHP4's OOP model and PHP5's OOP model. It definitely would confuse others.
anjanesh wrote:I would suggest you start with C++ or C# and then get back to PHP because C++ and C# are strictly OOP and not loosely type like PHP and Python which makes it easier to fall back to procedural style if you cant come up with an OOP solution.
I disagree, If you are just trying to play around with PHP and OOP messing around (Or learning) via PHP is not a bad thing.
anjanesh wrote:The problem with learning OOP concepts straight from PHP is because of the differences between PHP4's OOP model and PHP5's OOP model. It definitely would confuse others.
PHP4 and PHP5 are essentially the same. Certainly use of '->' is identical in both -- it references a function or property in an instantiated object.