Interviewer And Interviewee Guide

Sr. PHP Programmer Interview Question:

How do you load classes in PHP?

Submitted by: Muhammad
They are trying to gauge your understanding of how class auto loading works. Review the "autoload" and "spl_autoload_register" function (note:you should use the later). The autoload function basically triggers a function when a class is instantiated, you can put whatever logic you like in it but generally you want to include the class file based on some sort of naming convention.
Submitted by: Muhammad

Read Online Sr. PHP Programmer Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.