PHP Source:
<!DOCTYPE html>
<html>
<body>

<?php
class Car {
    function Car() {
        $this->model = "VW";
    }
}
// create an object
$herbie = new Car();

// show object properties
echo $herbie->model;
?>


</body>
</html>
Result:
Show PHP - © w3schools.com
Privacy Policy