Find jobs for senior php developer

Senior php developer Interview Questions


Senior Php Developer interview questions shared by candidates

Top Interview Questions

Sort: Relevance|Popular|Date
Senior PHP Developer was asked...May 14, 2018

Given an array of numbers [1,3,3,5,9,4,1,10,9,7,2,7], Write a php function that will print numbers that are not duplicated in array. [5,4,10,2]

6 Answers

The simplest solution for me is to loop through array, unset the current value then check if it is in the array which mean its duplicate and we add it to duplicated values array, if not ,its unique and added to another array for unique numbers .. in every iteration we check the number in the main array and in the duplicated array .. finally we print the unique array. Less

$firstarray = [1,3,3,5,9,4,1,10,9,7,2,7]; $secondarray = []; foreach ($firstarray as $i) { if (array_key_exists($i, $secondarray)) { $secondarray[$i] += 1; } else { $secondarray[$i] = 1; } } $result = []; foreach ($secondarray as $i=&gt;$j) { if ($j==1) { array_push($result, $i); } } echo var_dump($firstarray); echo "<br>"; echo var_dump($result); Less

$firstarray = [1,3,3,5,9,4,1,10,9,7,2,7]; $secondarray = []; foreach (array_count_values($firstarray) as $i=&gt;$j) { if ($j==1) { array_push($secondarray, $i); } } echo var_dump(array_count_values($firstarray)); echo "<br>"; echo var_dump($secondarray); Less

Show More Responses

whats the angle between the minute pointer and hour pointer at 3:15

5 Answers

at 3:15 hour arrow will indicate to 16minutes. So diff is 1 minute = 360/60 = 6 deg Less

U r right, it's 7.5 =) I was wrong and sleepy


Show More Responses
ASK Consulting

How much did you make at each of your previous roles?

2 Answers

At my next role I expect $$$.

My hourly rate is 40USD. I can work 8hours every day from Monday to Friday. If company need, i can do extra work on Saturday and Sunday. Thanks Less


Where we put the business logic in the MVC Design Pattern ?

2 Answers

You Should Put It In Controller because the model is for manipulating data with database Less



Sample streamed data Please write a program stream-sampler that receives and processes an input stream consisting of single characters.

2 Answers

Sending them a code inside a zip file.

The same test task for a Java Developer


SQL: you have a table with customers, with gender m and f. Write a query to update m with f, f with m in a single query, without temporary tables

2 Answers

UPDATE customers SET gender = CASE WHEN gender = 'm' THEN 'f' WHEN gender = 'f' THEN 'm' END Less

UPDATE customers SET gender = CASE WHEN gender = 'm' THEN 'f' WHEN gender = 'f' THEN 'm' END Less

Aexonic Technologies

How to get the data from more than 3 table without use join ?

2 Answers

use view it is subset of table. it can be used for retrieving data.

By using union

About You

Differences of abstract and interface?

2 Answers

Abstraction:- Data abstraction refers to, providing only essential information to the outside world and hiding their background details, i.e., to represent the needed information in program without presenting the details. For example, a database system hides certain details of how data is stored and created and maintained. Similar way, C++ classes provides different methods to the outside world without giving internal detail about those methods and data. Interface An interface is a reference type in Java. It is similar to class. It is a collection of abstract methods. A class implements an interface, thereby inheriting the abstract methods of the interface. Along with abstract methods, an interface may also contain constants, default methods, static methods, and nested types. Method bodies exist only for default methods and static methods. Less

The differences are both theoretical and practical: 1) interface is a description of some capability your class has and advertises (so various classes implementing the same interface can be used the same way) 2) abstract class can be a default implementation, containing the parts which are likely to appear in all the implementations. It doesn't have to implement the complete interface Less


I was asked if i can manage all sorts of projects from normal to very complex I was asked if i could do OOP and if i knew Phalcon framework - i wish i did !!

2 Answers

I could have done much better... Gimo i will get Better and come back!!!

i have a question i search a job as netbet custumer agent 1 Boundary Row, London SE1 8GN,is thats here under this adress in london Less


Just an introduction round, what are you currently working with?

1 Answers

kreditoren Buchhaltung

Viewing 1 - 10 of 543 Interview Questions

See Interview Questions for Similar Jobs