Object-oriented programming is an approach to designing modular, reusable software systems.
Just like C, PHP was started out as a non object-oriented programming language.
Started in version 4, some basic elements of object oriented features were added.
And in version 5, especially from v 5.3, it started to support most features of object oriented methodology.
In some of our earlier examples, we have used object oriented style of programming.
You can refer to this example where I have used:
$mysqli = new mysqli('localhost', 'root', '', 'allartist') $mysqli->query($query) $result->fetch_assoc()
We could write those code in procedural style but learning about OOP will open up a whole world where we could reuse OOP code written by others.