PHP - Classes and Objects
Which of the following is the correct syntax to declare an empty class named
Person in PHP?Person in PHP?class, the class name, and curly braces without parentheses or brackets.class Person { }, which is correct. class Person() { } wrongly uses parentheses, B uses brackets, and D adds a semicolon after braces which is unnecessary.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions