Home > Backend Development > PHP Tutorial > ph test paper Super comprehensive collection of PHP interview questions Page 1/2

ph test paper Super comprehensive collection of PHP interview questions Page 1/2

WBOY
Release: 2016-07-29 08:38:40
Original
1021 people have browsed it

1. Use PHP to print out the time format of the previous day as 2006-5-10 22:21:21 (2 points)
 2. The difference between echo(), print() and print_r() (3 points)
  3. Can use Templates used separately for HTML and PHP (1 point)
 4. What tools are used for version control? (1 point)
 5. How to implement string flipping? (3 points)
 --------------------- -------------------------------------------------- ---
 6. Methods to optimize MYSQL database. (4 points, the more you write, the more you get)
 7. The meaning of PHP (1 point will be given)
 8. What is the function of MYSQL to obtain the current time?, and the function of formatting the date is (2 points)
 9. Implement Chinese text string interception The gibberish-free approach. (3 points)
 ------------------------------------------------ ------------------
 10. Have you ever used version control software? If so, what is the name of the version control software you use? (1 point)
 11. Have you Have you ever used a template engine? If so, what is the name of the template engine you use? (1 point)
 12. Please briefly describe your most proud development work (4 points)
 13. What do you use for websites with large traffic? What is the best way to solve the traffic problem? (4 points)
 --------------------------------------------- ----------------------------
 14. Use PHP to write the code to display the client IP and server IP (1 point)
 15. What is the difference between the include and require statements? To avoid including the same file multiple times, they can be replaced by (?) statements? (2 points)
 16. How to modify the survival time of SESSION (1 point).
 17. There is a web page address , For example, the homepage of the PHP Research Laboratory: http://www.php100.com, how to get its content? ($1 point)
 18. In HTTP 1.0, the meaning of status code 401 is (?); if it returns "Cannot be found" To file" prompt, you can use the header function, whose statement is (?); (2 points)
 19. In PHP, heredoc is a special string, and its end mark must be? (1 point)
 20 , talk about the advantages and disadvantages of asp, php, jsp (1 point)
  21. Talk about the understanding of mvc (1 point)
 -------------------------- -----------------------------------------------
  22. Write For the SQL of the names of the ten people with the most posts, use the following table: members(id, username, posts, pass, email) (2 points)
  23. Please explain the difference between passing values ​​and passing references in PHP. When to pass by value and when to pass by reference? (2 points)
 24. What is the function of error_reporting in PHP? (1 point)
 25. Please write a function to verify whether the format of the email is correct (2 points)
 26 . Briefly describe how to get the current execution script path, including the obtained parameters. (2 points)
  27. How to modify the survival time of SESSION. (1 point)
  ---------------------------------- -------------------------------------
  28. What is the function of the JS form pop-up dialog box? Get input What is the focus function? (2 points) 29. What is the redirection function of JS? 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 an object Class attributes? (2 points)
 34. What is the difference between mysql_fetch_row() and mysql_fetch_array? (1 point)
 -------------------------- ---------------------------------------------
  35. GD library What is it used for? (1 point)
 36. Point out some ways to enter a piece of HTML code in PHP. (1 point) 37. Which of the following functions can open a file for reading and writing? (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. Will the following program input? (1 point)
 $num = 10;
 function multiply(

The above introduces the ph test paper. The super comprehensive collection of PHP interview questions on page 1/2, including the content of ph test paper. I hope it will be helpful to friends who are interested in PHP tutorials.


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template