开发者

Need to get my head around PHP classes [closed]

Closed. This qu开发者_StackOverflowestion does not meet Stack Overflow guidelines. It is not currently accepting answers.

Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.

Closed 9 years ago.

Improve this question

I'm pretty good with PHP, but the one thing I've never understood completely is classes. I've used a few (such as class.upload.php) but have fumbled my way around and more out of a monkey see monkey do approach.

Can anyone point me to some good tutorials that explain how these suckers work and how they function? I'd really appreciate it!

Thanks in advance


Nettuts: Object-Oriented PHP for beginners

That's a good startting point. They have a lot of these tutorials actually. Also a good idea is, to just go to your bookstore, and see what's lying around there.

I still prefer actual paper to screen reading. Also makes it easier to annotate.

The rest will come with time. After you understand the basics, it would be a good time to further read into OOP design patterns. Start with the singleton, as I feel like that is the easiest to grasp.

http://www.informit.com/articles/article.aspx?p=346958&seqNum=4
http://net.tutsplus.com/articles/general/a-beginners-guide-to-design-patterns/


Tutorials won't help you. I'm exactly where you are, but found out that tuts really don't tell you the why and what of things. Only the How.

I really recommend you buy a book. Prentice Hall PHP Power Programming is one excellent book.


www.php.net has awesome resources for these types of things: http://php.net/manual/en/language.oop5.php

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜