---
title: '(NEW 2019 VIDEO IN DESC!!!) What Is Object Oriented PHP | PHP Tutorial | OOP PHP | mmtuts'
source: 'https://youtube.com/watch?v=8DjzIuu49Rk'
video_id: '8DjzIuu49Rk'
date: 2026-07-28
duration_sec: 435
---

# (NEW 2019 VIDEO IN DESC!!!) What Is Object Oriented PHP | PHP Tutorial | OOP PHP | mmtuts

> Source: [(NEW 2019 VIDEO IN DESC!!!) What Is Object Oriented PHP | PHP Tutorial | OOP PHP | mmtuts](https://youtube.com/watch?v=8DjzIuu49Rk)

## Summary

This video introduces object-oriented programming (OOP) in PHP, contrasting it with procedural programming. The instructor explains that OOP uses classes, properties, and methods to organize code into reusable containers, which is especially beneficial for larger applications and team collaboration.

### Key Points

- **Introduction to OOP PHP** [0:00] — The video is the first in a series on object-oriented programming using PHP, explaining what OOP is for beginners.
- **Procedural vs OOP** [0:57] — Procedural programming inserts PHP code directly into HTML documents where needed, while OOP uses separate documents containing classes.
- **Classes, Properties, and Methods** [1:41] — Classes are containers for code related to a specific thing; they contain properties (variables) and methods (functions).
- **Reusability Example** [2:06] — A login class can be reused across different pages (e.g., sign-up form) without rewriting code.
- **Industry Standard** [3:21] — OOP is standard in marketing agencies and team environments because it provides a common format that all programmers understand.
- **OOP vs Procedural Debate** [4:04] — For small personal projects, procedural is fine; for larger applications, OOP offers more benefits. Some programmers disagree on which is better.
- **Different Teaching Approaches** [5:23] — OOP is taught differently across tutorials due to various design patterns (e.g., constructor pattern, MVC).
- **MVC Pattern** [6:29] — This series will use the MVC (Model-View-Controller) pattern, a popular design pattern for OOP in PHP.

### Conclusion

OOP in PHP organizes code into classes for reusability and standardization, making it essential for larger projects and team collaboration. The series will use the MVC pattern to teach OOP effectively.

## Transcript

how it going guys I'm back to another
series on how to do op oriented
programming using PHP code now because
this is the first episode in optic
oriented programming I'm going to spend
this episode explaining what exactly
optic oriented programming is because
it's very important that you guys
understand what it is if you have never
done anything with objectoriented
programming before so if you're
completely familiar with objectoriented
programming you don't need to watch this
episode The reason I want to do a small
episode on just explaining what exactly
it is is because I remember back when I
was learning object oriented programming
you know back when I was studying my
bachelors um the teacher had a specific
way of explaining optic oriented
programming that didn't make sense to
the entire class so it's very important
to me that I understand this in a way
that you guys understand it and know
exactly why we need to use op oriented
PHP programming versus the other way we
do it in the past okay now when it comes
to PHP programming the way been doing it
in my other series that's just called
PHP um we use something called procedure
programming now what that means is that
when we have a website such as just a
regular website with a login system we
would just go ahead and create the PHP
code and insert it inside the document
whenever we needed to use it meaning
that if I had a sign up form inside my
website I would just create the PHP code
inside the HTML page or inside the PHP
document uh where I had the sign up for
form whereas in object going into phsp
programming we create separate documents
only meant for PHP code that has
something in it called classes now
classes contain something called
properties and methods that we use
regarding one specific thing inside our
website now if that sounded confusing it
will sound confusing if you've never
done anything with optic ored PHP
program before so don't get scared that
you don't understand what classes and
properties methods are just go ahead and
follow the lessons and you will
understand in no time so the basic idea
here is that let's say we have this
login system inside a website and I need
to create the PHP code for this login
system now what I can do instead of just
creating the code where I need to use it
inside my phsp document I'm going to go
ah and create a separate document that
has a class which is just a very big
container to a lot of code that I use
regarding login systems so this class
might be called
login now inside this login class we
have properties and methods which is
another way of saying we have variables
and functions that are saved inside this
class now don't get me wrong properties
and methods are not the same as
variables and functions but they work in
a very similar way okay so inside this
class regarding login systems we have
code that does something regarding the
login system and because we do it this
way way if I were to do anything else
inside the website you know in another
page regarding a sign up form I can
reuse the code inside the class rather
than creating the code again inside the
website okay so we can actually reuse
code again and again and again which is
one of the benefits from using op gr to
PHP
programming now another benefit from
optic gr to PHP programming is that when
you if you want to work at a marketing
agency you know a place where they
actually create websites for companies
and that sort of thing it's pretty much
a standard today that you need to
understand after gr to PHP programming
because oop which is what we call optic
oriented PHP programming is a format
that all programmers understand with
procedural code I have one way of coding
it another programmer has another way of
coding it meaning that we might not
understand the code that each you know
each person wrote so op to go into PHP
programming kind of solves that problem
because we need to understand with other
people program when we have other people
that we work with now you might be
asking well is optic ored PSP
programming better than procedural
programming you know we just create the
code wherever we need to use it inside
our document well if the code is just
meant for you to use and you just create
the code for small applications then no
it doesn't matter if you do optic rer
phsp programming or procedural
programming like a login
system I would say it's borderlining you
know where you need to start considering
us using optic run to phsp programming
because now you're starting to create a
lter application but I just want to
highlight that a lot of people at least
a lot of programmers don't believe that
optic ored PSP programming is better
than procedural some people think they
do exactly the same thing where a person
like me think that optic rer PSP
programming if used right can do a lot
more beneficial things when it comes to
larger applications so if you're
watching this series and thinking well
optic R to PSP programming sounds much
too complicated or might be too
difficult to learn versus what you're
actually getting out of it then you
shouldn't look at it as a bad thing to
just want to go with procedural
programming just remember that if you
want to work with this in the future
you're going to need to look into optic
R into phsp programming but it's really
not that difficult to learn I just want
to empathize that because it really
depends on who's explaining it to you
now another thing I want to mention
regarding optic run into PHP programming
which is one thing that if you guys have
actually been good Googling it looking
for tutorials is that when you go to
different tutorial sites object oriented
phsp programming will be taught
differently by pretty much everyone and
the reason for this is that we have
different patterns in optic R to PHP
programming now what patents means is
that when you have optic PHP programming
you have a specific formula or a
specific pattern that you create the
code in meaning that if I were to learn
this from one website uh they might be
using something called Constructor
patents where another tutorial series
might not be using Constructors which is
something that we will be talking about
in this series here because Constructors
seem pretty important when it comes to
having the proper format of op ored PHP
programming but it's different what
people teach you when it comes to op
ored PHP programming so I just want to
mention before you get started on this
series that what we're going to be doing
is we're going to go ahead and use
what's called an MVC pattern which
stands for model view controller and
it's a pattern that was created quite a
while back which was used mainly for
other types of programming languages but
has been incorporated into PHP when it
comes to oop programming and we're going
to go and using this series here now in
the next episode I will be explaining
what exactly an MVC model is you know
model view controller and why we need to
do it this way at least when it comes to
my tutorial series here in the future we
might might be looking into other design
patterns but for now in the beginning
here we're going to focus on the NVC
pattern since it's pretty popular out
there so I hope you guys enjoyed and
I'll see you guys next
time
