class a
{
public $a;
}
class b
{
$c = new a();
}Bu şekilde yaptığımda phpED hatalı gösteriyor. parse error, expecting 'T-FUNCTION'
unexpected $c
Bu hatayı gösteriyor.
Hatam ne olabilir ?
1
●266
class b
{
function b (){
$c = new a();
}
}bu şekilde kullanabilirsiniz