View Single Post
Old 10-06-2009, 05:43 PM   #10 (permalink)
ETbyrne
how quixotic are you?
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
ETbyrne is on a distinguished road
Default

Basically, and I'm generalizing a ton here, OOP scripts use classes. So in order to have a script that is not OOP, then it would have to have no classes.

It would be nearly impossible to create a large, well structured, program without the organization that classes offer.

OOP isn't that hard, and there are some good tutorials on it around here somewhere...

PHP Code:
class message
{
    public 
$msg;

    public function 
display()
    {
        echo 
$this->msg;
    }

    public function 
set($text)
    {
        
$this->msg $text;
    }
}

$message = new message();
$message->set('Hello, World!');
$message->display(); 
The above outputs:

Code:
Hello, World!
__________________
Dingo Web Systems > http://www.dingocode.com
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
The Following User Says Thank You to ETbyrne For This Useful Post:
Dave (10-06-2009)