Jump to content


Photo

OOP programming


  • Please log in to reply
4 replies to this topic

#1 avo

avo
  • Members
  • PipPipPip
  • Advanced Member
  • 148 posts
  • Locationstaffordshire uk

Posted 18 August 2006 - 04:18 PM

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
Im loving it ........

#2 whiteknight

whiteknight
  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 18 August 2006 - 04:50 PM

No specific examples sorry. But try hunting about university sites that release public stuff like that.

#3 ToonMariner

ToonMariner
  • Members
  • PipPipPip
  • Advanced Member
  • 3,342 posts
  • LocationNewcastle upon Tyne, UK

Posted 18 August 2006 - 05:32 PM

EDITED BY WILDTEEN88: Please do not post illegal file sharing sites.

Sorry...

Try lynda.com
follow me on twitter @PHPsycho

#4 KittyKate

KittyKate
  • Members
  • PipPipPip
  • Advanced Member
  • 32 posts

Posted 18 August 2006 - 05:37 PM

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/.../java/concepts/

For php, the standard syntax is:

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 */

}

PHP Version 4.3.2
MySQL version unknown (greater or equal to 3.23)

#5 avo

avo
  • Members
  • PipPipPip
  • Advanced Member
  • 148 posts
  • Locationstaffordshire uk

Posted 18 August 2006 - 08:04 PM

HI all

Thankyou for all your comments

Much appriciated
Im loving it ........




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users