- Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected 'father' (T_STRING), expecting function (T_FUNCTION) in /in/HTFRQ on line 11
Process exited with code 255.
<?php
class father {
protected $name;
function __construct($name){
$this -> name = $name;
}
function __destruct(){
echo "<p>".$this ->name."what the ca </p>";
}
father();
}