<html>
<body>
class Car {
function Car() {
$this->model = "VW";
}
}
// create an object
$herbie = new Car();
// show object properties
echo $herbie->model;
</body>
<!-- Mirrored from www.w3schools.com/php/phptryit.asp?filename=tryphp_datatypes_object by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 02:29:30 GMT -->
</html>