News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NETTUTS.com:
Learning OOP in PHP ASAP!
January 20, 2009 @ 09:36:36

NETTUTS.com has posted an introduction (using the Car analogy, of course) to teach you how to use the basics of object-oriented programming in PHP.

PHP is so much more than a scripting language. It's a full-fledged language capable of building very complex applications. By harnessing the full power of Object Oriented Programming, you can reduce the amount of time you spend coding and use it to build better websites. This tutorial will show you how.

They explain objects, inheritance, encapsulation and polymorphism briefly before "getting their hands dirty" with some actual OOP PHP code. Their code example sets up a thumbnailer class - one that takes in an image, a height/width you want to resize it to (as properties) and splits it back out the other side.

As always, you can grab the source or view the demo to see it work.

0 comments voice your opinion now!
tutorial thumbnail oop object oriented introduction


blog comments powered by Disqus

Similar Posts

Internet Super Hero: PHP: mysqlnd and its tests

Giorgio Sironi's Blog: Php login with Zend_Auth

Hasin Hayder's Blog: RSA Encrypting and Decrypting data with Zend_Crypt_Rsa Library

Enrico Zimuel's Blog: PHP session sharing using Zend Server CE and MS SQL Server

Rob Allen: Sending attachments in multipart emails with Zend\Mail


Community Events

Don't see your event here?
Let us know!


api community project composer part2 yii2 symfony application podcast series interview example php7 list programming framework laravel language opinion introduction

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework