Let us now begin with the basic PHP interview questions and answers.
1. Who do we know as the father of PHP?
Rasmus Lerdorf who created the langua...
For further actions, you may consider blocking this person and/or reporting abuse
I guess recruiters stopped updating their php knowledge in 2020, see question 4.
Question 7 got me nostalgic. Where is the time I wrote php 4 code. What a wild time that was.
Please write a better post with more relevant information. And leave out the parts you shouldn't have copied (29, 39, 40, 51)
"54. What is overloading and overriding in PHP?"
From what I know, overloading in PHP is different than the one in other OOP languages like C++, Java and C#.
In PHP, it is used for dynamically creating properties and methods. These dynamic entities are processed via magic methods such as
__set(), __get()for properties and__call(), __callStatic()for methods.Btw, no mention about class autoloading, esp with
spl_autoload_register()function ?A lot of these (I got through 1, 2, 4, 5, and 6 before stopping counting), nobody needs to know - it's just not useful information or relevant to a job.
If someone asked me them in an interview, I'd ask them why they wanted to know, and when was the last time they used that information in the real world.
I rarely ever conduct interviews, but if I ever ask you one of these questions, esp. the first half -> throw something at me xD
Ofc different requirements might require different approaches. But I assume we are talking about a junior role / candidates first job maybe.
I'm usually more curious about where they are in their journey e.g.
And I just go from there to get an idea about a candidate and the way they approach a given problem etc.
In other words, I want to figure out if they are 1) a fit for the teams 2) can grow into the job and how many weeks/months it'll roughly take for them to be productive and contribute in a meaningful manner.
This is a joke right? If those questions are asked and used to determine qualities of a candidate - run!