Toggle navigation
Home
Latest pastes
FAQ
Random
Register
Login
PHP object
SUBMITTED BY:
henry1874w
DATE:
June 4, 2017, 8:18 p.m.
FORMAT:
Text only
SIZE:
233 Bytes
Raw
Download
Tweet
HITS:
349
Go to comments
Report
<!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>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus