V
V
vovkka2016-08-24 18:39:19
PHP
vovkka, 2016-08-24 18:39:19

What to learn pdo or oop first?

I started learning the php + database connection through pdo, and as I understand it, in order to understand pdo normally, you need to oop. Question: what to learn pdo or oop in the first place? Thank you.

Answer the question

In order to leave comments, you need to log in

7 answer(s)
A
Alexander Sharihin, 2016-08-24
@Pinsky

Questions like this always baffle me.
You absolutely need both.

E
Erling, 2016-08-24
@Erling

Learn OOP with PDO.

D
DuD, 2016-08-24
@DuD

Better deal with PDO, oop will catch up on its own. And then, with a basic understanding of how it works, you can dive into the jungle of oop.

O
Optimus, 2016-08-24
Pyan @marrk2

Not in PDO and procedural style, but with $pdo->prepare you can figure it out anyway.
I would first learn PDO and then OOP

K
Konstantin B., 2016-08-24
@Kostik_1993

I think learn PHP first. You do not understand at all what and why

T
trevoga_su, 2016-08-25
@trevoga_su

to properly understand pdo you need oop
no
, you can work with pdo without understanding OOP,
this is an elementary abstraction over database drivers,
you can learn mysqli. I would even say it's BETTER - start with mysqli - you gain experience, mysqli is more functional. pdo is much worse in terms of functionality.
well, you don't understand the main thing - oop is a programming paradigm, pdo is a library that uses an object interface. you need to learn OOP, but YOU still - early.

D
Dmitry, 2016-08-24
@mytmid

I don't understand how you can learn "astronomy" without studying the "sky map"... Just imagine how many "jambs" there will be in your code when using PDO without understanding OOP.
Total answer: first of all OOP and nothing else!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question