10-06-2009, 05:43 PM
|
#10 (permalink)
|
|
how quixotic are you?
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 445
Thanks: 37
|
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:
|
|
|
|