Jump to content

Archived

This topic is now archived and is closed to further replies.

avo

OOP programming

Recommended Posts

Hi all

does anyone know where i can find video tutorials on oop programming with php
my php is not bad now but i would like to take it to the next level

All guidence Appriciated

Share this post


Link to post
Share on other sites
EDITED BY WILDTEEN88: Please do not post illegal file sharing sites.

Sorry...

Try lynda.com

Share this post


Link to post
Share on other sites
Have you tried googling it? I found a few possible sites with a quick check. If you have never programmed in an OO environment, it can take some adjustment to move from procedural to classes and methods. I'd recommend looking into OO in general, and then starting to apply it to your php.

Java has a relatively decent explaination of the topic: http://java.sun.com/docs/books/tutorial/java/concepts/

For php, the standard syntax is:

[code]class ClassName [extends ParentClass] {

    function className ($param1, ...) {
        //this is your constructor, where you set the value of variables
    }

    function functionName ($param1, $param2, $optionalParam = 'defaultValue') {


    }

    /* keep listing more and more functions */

}[/code]

Share this post


Link to post
Share on other sites
HI all

Thankyou for all your comments

Much appriciated

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.