BusinessesQuiz of the Day Quiz of the Day: 08/12/2016

PHP Quiz!



B) Constructor

All objects can have a special built-in method called a ‘constructor’. Constructors allow you to initialise your object’s properties (translation: give your properties values,) when you instantiate (create) an object.

Note: If you create a __construct() function (it is your choice,) PHP will automatically call the __construct() method/function when you create an object from your class.

The ‘construct’ method starts with two underscores (__) and the word ‘construct’.

If you want to explore more, visit our PHP edu & tutorials section!

Below are some examples:

PHP Super Basics & Possible Code Clash!

Temple – PHP Language engine

Related posts
BusinessesCareer Development

4 Unique Proven Tips for Finding Awesome Employees


Getting Web Development Projects Right

Artificial IntelligenceBusinesses

CPU, GPU, FGPA, or DSP: Heterogeneous Computing Multiplies the Processing Power

BusinessesCoding Community

Achieving the Best QoE: Performance Libraries Accelerate Code Execution