Object-Oriented Programming in PHP


Define classes and create objects to model real-world entities.

Source Code

class Car {
    function Car() {
        $this->model = "VW";
    }
}
$herbie = new Car();
echo $herbie->model;
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments