Sample PHP Programming Technical Interview Questions and Answers for fresher job interview / placement test. PHP Programmer job Practice Questions related to php language asked in IT MNC written recruitment exams and interview.
Explain the difference between echo and print statements?
How can you count the number of site visitors?
A simple way to make a chat page in php?
Difference between require_once(), require() and include().
Difference between mysql_fetch_row(), mysql_fetch_array() and mysql_fetch_object()
How can you determine the user’s ip address using php?
How to check the browser features?
What is the difference between mysql_connect and mysql_pconnect.
How to make a function to check whether a user is logged in or not.
What is the use of tags <?= and ?> in PHP?
Difference between include() and require()
What is the problem with assignment of a value beginning with 0 to a variable?
How do you match the character ^ at the beginning of the string?
Why do we use crc32() and sha1() even as they are less secure than md5()?
What is the difference between the above three crypto?
Use the define() directive to define a constant.
With an example, show how to pass a variable by value.
Can you compare a string “12″ and integer 11 in PHP?
Use of endif in php.
Explain the user of ternary conditional operator in php.
Which function can be used to find the number of parameters passed into the function?
Accessing a class method using -> and ::?
Method to call a constructor for a parent class.
What do you understand by _sleep and _wakeup?
How do we initialize a string?
Do we use single quotes or double quotes to initialize the string?
What is the difference between echo, print and printf.
List the difference between htmlentities() and htmlspecialchars().
Given a function. Find the output.