Enter your E-mail Address below for Free E-mail Alerts right Into your Inbox: -
Don't Forget To "Activate" Subscription Link Sent to Your Email

PHP Interview Questions and Answers for Freshers PDF Free Download

PHP Interview Questions and Answers:

Candidates if you are interested in designing creative and attractive web pages that interact with databases by using PHP and you want to enhance your career in such field, and then you must be well prepared for the Interview round. Here on this page we are providing you some PHP Interview Questions and Answers for Freshers. These questions will be in PDF file you can easily download through our web portal.

Interview Questions and Answers for Freshers

Interview Round is more challenging for the candidate after the written test round. Most of the candidate who take part in the interview are scared about the questions on any topic regarding the field and give the accurate answer for that topic. 
Here we present some Interview Question and Answer of PHP for fresher to give you a good PHP web developer position. These question are not generally to test your PHP skills but to polish your general web development knowledge. If you are a beginner or fresher then you should be able to understand the question of PHP and the answer related to it.

Interview Questions for Government Jobs

Some PHP Questions with Solutions:

Que-1: Who is the Father of PHP?
Ans. Rasmus Lerdorf

Que-2: What is PHP stands for?
Ans. Hyper text Pre Processor

Que-3: How to include a file to a php page?
Ans. We can include a file using "include() " or "require()" function with file path as its parameter.

Que-4: require_once(), require(), include().What is difference between them?
Ans:require() includes and evaluates a specific file, while require_once() does that only if it has not been included before (on the same page). So, require_once() is recommended to use when you want to include a file where you have a lot of functions for example. This way you make sure you don't include the file more times and you will not get the "function re-declared" error.

Que-5: Differences between GET and POST methods?
Ans: We can send 1024 bytes using GET method but POST method can transfer large amount of data and POST is the secure method than GET method

Que-6: How to declare an array in php?
Ans: Eg : var $arr = array('apple', 'grape', 'lemon');

Que-7: What is use of count() function in php ?
Ans: count() is used to count all elements in an array, or something in an object.

Que-8: How to set cookies in PHP?
Ans: Setcookie ("sample", "ram", time()+3600);

Que-10: How to Retrieve a Cookie Value?
Ans: eg : echo $_COOKIE["user"];

Que-11: What Is a Session?
Ans. It can be used to store information on the server for future use.

Que-12: Is variable name case sensitive?
Ans. Yes variable name case sensitive and we cannot start a variable with number like $6name as a valid variable name starts with a letter or underscore, followed by any number of letters, numbers, or underscores.

Que-13: How we know the total number of elements of Array?
Ans: There are two methods through which we can know the total number of elements:
sizeof($array_var)
count($array_var)

Que-14: What is the difference between explode() and split() functions?
Ans: Split function splits string into array by regular expression. Explode splits a string into array by string.

Que-15: How to strip whitespace (or other characters) from the beginning and end of a string ?
Ans. The trim() function removes whitespaces or other predefined characters from both sides of a string.

Que-16: How to set a page as a home page in a php based site?
Ans: index.php is the default name of the home page in php based sites.

Que-17: How to find the length of a string?
Ans: strlen() function used to find the length of a string.

Que-18: what is the use of isset() in php?
This function is used to determine if a variable is set and is not NULL.

Que-19: What is the use of "ksort" in php?
Ans: It is used for sort an array by key in reverse order

Que-20: How to delete a file from the system



Sarkari Naukri

Current Affairs

Recruitment 2014

Private Jobs

Railway Jobs

Application Form

PREPARATION TIPS

Career Options

Online Tests

Written Exam tips

Civil Services

Math
(Preparation Tips)|(Online Quiz )

Interview Tips

Banks Jobs

Reasoning
(Preparation Tips)|(Online Quiz)

Resume Writing Tips

Study Abroad

Computer Knowledge
( Preparation Tips)|(Online Quiz )

Check Result - Internet

Memory Power Tips

General Awareness
( Preparation Tips)|(Online Quiz )

Fill Online Application

Distance Education

Typing Test

Job searching tips

Retail Management

Computer Quiz for Bank, Railway

Group Discussion

English Preparation

Hospital Management

how write good answer

Mass Communication

CLERK - Online Practice Test

Selection Process

Foreign Language

Study Abroad

Nausena Bharti

SSB Interview Q- A

Maximise your score in exam

Enter your E-mail Address below for Free E-mail Alerts right Into your Inbox: -
Don't Forget To "Activate" Subscription Link Sent to Your Email

No comments:

Post a Comment

Don't Add Comment with Spam Purpose

x

Subscription to FREE Email Alerts

Enter your E-mail Address below for Free E-mail Alerts right Into your Inbox: -
Don't Forget To "Activate" Subscription Link Sent to Your Email