Answers

Question and Answer:

  Home  Senior PHP Programmer

⟩ How will you create objects in PHP?

Once you defined your class, then you can create as many objects as you like of that class type. Following is an example of how to create object using new operator.

$physics = new Books;

$maths = new Books;

$chemistry = new Books;

 197 views

More Questions for you: