BusinessesQuiz of the Day

Livecoding.tv Quiz of the Day: 08/12/2016

PHP Quiz!

php-quiz-of-the-day

Answer:

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

About author

About Author Dr. Michael Jurgen Garbade is the founder of LiveEdu.TV, Kyuda, Education Ecosystem. He is future Venture Capitalist, Future Politician and always on the lookout for the Next Big Challenge. Obtained Masters in business administration and physics, and a Ph.D. in finance with professional work experience in high-paced environments at Fortune 500 companies like Amazon and General Electric. Expertize: Python, PHP, Sencha Touch & C++, SEO, Finance, Strategy & E-commerce. He speaks English and German and has worked in the US, Europe, and Asia. At Education Ecosystem he is the CEO and runs business operations.
Related posts
BusinessesCareer Development

4 Unique Proven Tips for Finding Awesome Employees

Businesses

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