PHP Magic Methods

MAGIC METHODS 1.Why magic methods ? Ans: In PHP,  a variable can take any form depending on the data passed to it. Also PHP automatically creates variable and assigns values to it even if the variables are not defined. But in Object Oriented Programming all the data members/methods needs to be defined. To solve some [...]

ORM (Object Relational Mapping)

ORM in  PHP Advantages: ORMs have their own APIs for building queries and so are less Vulnerable to SQL injection attacks. ORMs have tools that will inspect a schema and build up a set  of model classes that allow you to interact with object in db. Instead of Directly interacting with db , you’ll be [...]

Follow

Get every new post delivered to your Inbox.