document.write("
<?php class Car { //properties public $price; public $colour; //methods function setPrice($myPrice){ $this->price = $myPrice; }} //start the build process$myCar = new Car(); $myCar->setPrice(50000);