I just don't see why OOP is so nice.
I think it makes the script look "cooler" because it's more confusing to someone new to OOP.
For those who don't know OOP I'll make two scripts.
PHP Code:
<?php
//the non-OOP way
echo "Name: Andrew";
?>
PHP Code:
<?php
//the OOP way
class Person
{
var $name;
function name()
{
return $this->name;
}
}
$person = new Person;
$person->name = "Andrew";
echo "Name: ".$person->name()."";
?>
They should print
Name: Andrew