php simple class object example
Example 1: php object
$o= new \stdClass();
$o->a = 'new object';
OR
$o = (object) ['a' => 'new object'];
Example 2: how to make php oop class
public className{
public function __construct(){
//CODE HERE
}
}