PHP object-oriented programming
.net technique php 74 .net november 2007 Knowledge needed PHP Requires PHP Project time 30 minutes Mention object-oriented programming to most web developers and you usually get the same effect: blood will drain from their faces and their eyes will glaze over. Thatquoteright0s a shame, because OOP is a hugely useful technique in anyonequoteright0s toolbox. The reason people are usually afraid of it is because OOP has long been the realm of “serious programmers”, as opposed to “dabblers”. Given that many web developers see PHP as a neat hack to add functionality around the beautiful interface theyquoteright0ve designed, you can imagine why OOP gives them jitters. In this tutorial, I want to show you how object orientation works with the minimum amount of theory and the maximum amount of practical, hands-on code that you can get using straight away. So letquoteright0s go OOP! Understanding objects An object is a bundle
[Read the rest of this entry...]
