Php Engineer Interview Questions

4,499 php engineer interview questions shared by candidates

sort an json data , sample given below, based on marks. $jsonData = '[{"id":1,"name":"name1","subject":"math","marks":100},{"id":2,"name":"name2","subject":"english","marks":55},{"id":3,"name":"name3","subject":"physics","marks":35},{"id":4,"name":"name4","subject":"chemistry","marks":73},{"id":5,"name":"name5","subject":"sub1","marks":65}]';
avatar

Senior PHP Developer

Interviewed at ValueLabs

4
Oct 7, 2023

sort an json data , sample given below, based on marks. $jsonData = '[{"id":1,"name":"name1","subject":"math","marks":100},{"id":2,"name":"name2","subject":"english","marks":55},{"id":3,"name":"name3","subject":"physics","marks":35},{"id":4,"name":"name4","subject":"chemistry","marks":73},{"id":5,"name":"name5","subject":"sub1","marks":65}]';

They asked me to build a PHP Command line script that will take an URL (endpoint with an array of events) and two dates and I had to filter the array by the events that were available between those dates. Had 2 hours, I could use frameworks or anything but had to be documented in a Readme.
avatar

PHP Backend Engineer

Interviewed at GetYourGuide

3.1
Mar 31, 2018

They asked me to build a PHP Command line script that will take an URL (endpoint with an array of events) and two dates and I had to filter the array by the events that were available between those dates. Had 2 hours, I could use frameworks or anything but had to be documented in a Readme.

Viewing 1021 - 1030 interview questions

Glassdoor has 4,499 interview questions and reports from Php engineer interviews. Prepare for your interview. Get hired. Love your job.