Prior to which version of PHP did constructors took the name of the enclosing class.
Prior to which version of PHP did constructors took the name of the enclosing class. Correct Answer PHP 5
The new unified constructors use the name __construct(). Using the old syntax, a call to a parent constructor would tie you to that particular class: parent::ShopProduct();
মোঃ আরিফুল ইসলাম
Feb 20, 2025