Google News
logo
PHP - Interview Questions
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.

$clanguage= new Book;
$java = new Book;
$php = new Book;
Advertisement