PHP - Classes and Objects
Which of the following is the correct way to declare a private property named
$name in a PHP class?$name in a PHP class?private $name;. The var keyword is outdated and defaults to public.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions