- Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.7
- Parse error: syntax error, unexpected 'esam' (T_STRING), expecting function (T_FUNCTION) or const (T_CONST) in /in/5hVBJ on line 5
Process exited with code 255.
<?php
class A {
public esam = 10;
}
class B {
public mase = 20;
}
$a = new A;
$a->esam = new B;
echo $a->esam;