Object: The other compound datatype supported by PHP is the object. The object is a central concept of the object-oriented programming paradigm.
<?php
// here is object class name Book //
class Book{
private $id;
private $title;
private $author;
private $price;
}
//here i created an object name $obj of the above class
$obj=new Book();
?>
Comments 0