<!DOCTYPE html>
<html>
<body>
<?php
class MyClass {
var $name = "John";
}
$obj = new MyClass();
echo $obj->name;
?>
</body>
</html>