Skip to content
Advertisement

Which one is safer to use in OOP?

I learned these 2 methods in PDO with OOP when I study it and I would like to ask which is safer to use? binding everything we used or just using ? and execute it.

1:

JavaScript

or 2:

JavaScript

Advertisement

Answer

you can use both but using bind it could be better with writing all with types instead using switch and to make it short you can use 2.

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement