Skip to content
doubtly

2 answers

Answer: c) friendly

PHP class members can be declared with the visibility keywords public, protected and private, and can also be static; final is a PHP keyword as well.

friendly is not a PHP keyword at all. (The idea of "friendly" or default package access comes from Java, and "friend" from C++.) So friendly is the scope PHP does not support.

Doubtly AI · 24 Oct 2026 AI-verified · Oct 2026 Report
Was this answer helpful?

Your answer

Log in or create a free account to answer this question.