I created one class and created some member variables ,
i am not getting why this error is coming ,when ever i am writing private or public access specifiers before the memeber variables , then error is disappering ,
what is the reason behid it.
is it not taking public as default ??
code
<?php
class abc
{
$v = "g";
$array = ['name'=>'test','age'=>5];
}
?>