PHP - Classes and Objects
Identify the error in this PHP class declaration:
class Animal public $type; }
class Animal public $type; }
{ immediately after the class name.class Animal, causing a syntax error.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions