
Originally Posted by
n0minal
You know very little of OOP then. Just FYI, OOP is way more flexible and far exceeds the pros (if any) of Procedural.
>exceeds pros
LMAO! That's like saying the pros of using your right leg exceed those of using your left. It's the same thing. Just a different approach.
OOP is not more flexible, lol. It's just a way of making things more complicated for yourself, which somehow, you crazies seem to adore.
It's the exact same fucking thing:
Procedural:
PHP Code:
$link = mysqli_connect('localhost', 'my_user', 'my_password', 'my_db');
OOP:
PHP Code:
$mysqli = new mysqli('localhost', 'my_user', 'my_password', 'my_db');
This is what I use for my custom MySQLi class:
PHP Code:
$mysqli = new briteMySQLi($mysql_host, $mysql_user, $mysql_password, $mysql_database);
$mysqli->connect();
Isn't that so much nicer than all of that ramen code?
Or have I been using OOP this entire time and bashing it..