Problem Statement
Which of the following are valid access modifiers in PHP?
Explanation
Access modifiers control visibility. Public means accessible everywhere. Protected means within the class and subclasses. Private means only inside the same class.
Code Solution
SolutionRead Only
class Test { public $a; protected $b; private $c; }