PHP Interview Questions
Sign in

PHP Interview questions

1)How can we repair a MySQL table?

2)
What is the difference between $message and $$message?

3)
What Is a Persistent Cookie?

4)
What are the differences between require and include, include_once?

5)
What is meant by urlencode and urldecode?

6)
How do I find out the number of parameters passed into function9. ?

7)
What are the differences between GET and POST methods in form submitting, give the case where we can use GET and we can use POST methods?

8)
How can we create a database using PHP and mysql?


9)
For printing out strings, there are echo, print and printf. Explain the differences


10)
What’s the output of the ucwords function in this example?

11)
So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

12)
How can we destroy the session, how can we unset the variable of a session?


13)
How can we know the count/number of elements of an array?

14)
How many ways we can pass the variable through the navigation between the pages?

15)
What is the maximum length of a table name, a database name, or a field name in MySQL?


16)
What are the other commands to know the structure of a table using MySQL commands except EXPLAIN command?

17)
What is the difference between PHP4 and PHP5?

18)
What is meant by nl2br()?

19)
How can I retrieve values from one database server and store them in other database server using PHP?



20)
What is the difference between CHAR and VARCHAR data types?



prevnew
start_blog_img