- Output for 5.6.38, 7.1.0 - 7.1.23, 7.2.0 - 7.2.11
- Parse error: syntax error, unexpected '}' in /in/iAC28 on line 16
Process exited with code 255.
<?php
class cp2
{
protected $a;
protected $m;
protected $t=3;
public function tiga($a,$m)
{
echo "set alas dan set miring".$this->tiga();
}
protected function coba1()
{
$this->a
}
}
$segitiga = new cp2 ();
echo $segitiga->tiga(4,5);
echo PHP_EOL;