Super comprehensive PHP interview questions collection page 1/2

Source: Internet
Author: User

1. Use PHP to print the time format of the previous day in the format of 22:21:21 (2 points)

2. Differences between echo (), print (), and print_r () (3 points)

3. templates that can separate HTML and PHP (1 point)

4. What tools are used for version control? (1 point)

5. How to Implement string flip? (3 points)

---------------------------------------------------------------

6. Optimize the MySQL database. (4 points, more writes)

7. php meaning (1 minute)

8. What is the function for MySQL to obtain the current time ?, The format function is (2 points)

9. The method of intercepting Chinese strings without garbled characters is implemented. (3 points)

---------------------------------------------------------------

10. Have you used version control software? What is the name of the version control software you use? (1 point)

11. Have you used the template engine? What is the name of the template engine that you use? (1 point)

12. Briefly describe your most proud development work (4 points)

13. What methods do you use to solve the traffic issue for high-traffic websites? (4 points)

-----------------------------------------------------------------

14. Write and display the Client IP address and Server IP address in PHPCode1 point)

15. What is the difference between the include statement and require statement? To avoid multiple accesses to the same file (?) Statement instead of them? (2 points)

16. How to modify the session survival time (1 point ).

17. There is a webpage address, such as PHP research home page: http://www.php100.com, how to get its content? ($1)

18. In HTTP 1.0, Status Code 401 indicates (?); If the message "file not found" is returned, the header function is available. The statement is (?); (2 points)

19. In PHP, heredoc is a special string and its end mark must be? (1 point)

20. Advantages and Disadvantages of ASP, PHP, and JSP (1 point)

21. About MVC (1 point)

-------------------------------------------------------------------

22. Write the SQL statement for the top 10 people with the most posts. Use the following table: Members (ID, username, posts, pass, email) (2 points)

23. The difference between passing a value in PHP and transferring a reference. When will the value be passed for reference? (2 points)

24. What is the role of error_reporting in PHP? (1 point)

25. Please write a function to verify that the email format is correct (2 points)

26. Briefly describe how to obtain the path of the script to be executed, including the obtained parameters. (2 points)

27. How to modify the session survival time (1 point)

--------------------------------------------------------------------

28. What is the function in the JS form pop-up dialog box? What is the input focus function? (2 points)

29. What is the JS steering function? How to introduce an external JS file? (2 points)

30. What is the difference between Foo () and @ Foo? (1 point)

31. How to declare a class named "myclass" without methods and attributes? (1 point)

32. How to instantiate an object named "myclass? (1 point)

33. How do you access and set attributes of a class? (2 points)

34. What is the difference between mysql_fetch_row () and mysql_fetch_array? (1 point)

--------------------------------------------------------------------

35. What is the GD library used? (1 point)

36. Point out some methods to input a piece of HTML code in PHP. (1 point)

37. Which of the following functions can open a file to read and write the file? (1 point)
(A) fget () (B) file_open () (c) fopen () (d) open_file ()

38. Which of the following options does not add John to the users array? (1 point)
(A) $ users [] = 'john ';
(B) array_add ($ users, 'john ');
(C) array_push ($ users, 'john ');
(D) $ users | = 'john ';

39. The followingProgramWill input? (1 point)
$ Num = 10;
Function multiply (){
$ Num = $ num * 10;
}
Multiply ();
Echo $ num;
?>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.