Priti's Technical Corner

June 12, 2011

PHP Interview Questions

Filed under: Interview, PHP — Tags: , , — pritisolanki @ 10:47 am

Question1: What is difference between div and span

Answer 1:

SPAN: Browser to apply the style rules to whatever is within the

DIV: Includes paragraph break because it is defining a logical division in the document.

Question 2: what is max POST size.

Answer 2:  8M

Question 3: htmlspecialchars convert some special characters to HTML entities which are they.

Answer 3:

‘&’ (ampersand)

‘”‘ (double quote)

”’ (single quote)

‘<‘ (less than)

‘>’ (greater than)

Question 4: Default upload max file size of file a file in php.ini?.

Answer 4:  2 M

Question 5:  Which is the php config setting for enabling file uploads.

Answer 5:  set ‘file_uploads’ to ON

Question 6: Which scope will be defined if you want variable to be available in complete script.

Answer 6: Global

Question 7: which engine in mysql supports full text search?.

Answer 7: MyISAM



  1. How can you dynamically set and get php.ini file settings?

    Comment by Preetam Chari — June 23, 2011 @ 11:13 am

  2. Question 20: Can you compare two arrays using == operator?

    Comment by Preetam Chari — June 23, 2011 @ 11:14 am

  3. Hi Preetam,
    2.1) using ini_set

    you can compare two arrays using == but only for key and value for key,value and order you have to use ===.

    Comment by Nikhil — November 11, 2011 @ 6:42 am

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: