Zend Related Exams
200-500 Exam
Which of the listed changes would you make to the following PHP 4 code in order to make it most compliant with PHP 5? (Choose 2)
class Car {
var $model;
function Car($model) {
$this->model = $model;
} function toString() {
return "I drive a $this->model.";
}}
$c = new Car('Dodge');
echo $c->toString();
?>
What XML component does the following XPath query try to match?
//foo[bar/@id=5]
What can prevent PHP from being able to open a file on the hard drive (Choose 3)?