


Common interview questions for 3-5-year PHPers, 3-5phper test questions_PHP tutorial
Common interview questions for PHPers with 3-5 years of experience, 3-5phper test questions
I saw a lot of them, to summarize, they are more suitable for PHPers with certain experience
1. What PHP books and blogs do you usually like? CSDN, Huxiu, Lieyun
2. What is js closure?
3. Which one is faster, for or foreach?
4. Who is PHP Bird Brother? Can you talk about the PHP execution principle?
5. What are the PHP accelerators? apc, zend, xcache... Can you talk about their acceleration principles?
6. It is nonsense that Node.js can completely replace php apache.
7. How to determine whether a value exists in an array? in_array(), array_key_exists,...
8. How to determine whether an index is used in the select statement? explain
9. Do you use a third-party library for Chinese word segmentation in sphinx or build your own library?
10. If an interviewee has little experience and poor foundation, he or she will ask about advanced knowledge at this time. If you want to doubt its stability, you can ask whether working overtime would be objectionable to him.
11. What are the differences between mysql and mysqli?
12. What is the future development direction? Security, data mining, big data processing?
13. PHP’s object-oriented approach: class modifiers, encapsulation, inheritance, and polymorphism
14. What is PHP polymorphism?
15. Type Hinting: http://www.php.net/manual/en/language.oop5.typehinting.php
16. PHP design patterns: singleton mode, factory mode, producer mode. .....etc. 23 kinds
17. Server status code: 200, 202, 301, 404, 500...
18. What is the difference between $i and $i?
19. Project development: Shopping cart data persistence in e-commerce projects, security considerations for examination systems,
20. MySQL design basics: three major paradigms, functions -> mind map, table creation What is the first field?
21. MySQL field char, varchar, int, smallint, tinyint, mediumint, bigint, decimal, double, float bytes and application scenarios.
22. What are the usage scenarios of memcache, mongoDB, and Redis?
23. Why do mongoDB and Redis not compete but complement each other?
24. What are the data types of Redis? int, string, hash, set, list?
25. When installing Linux software, should you use make or yum?
26. Linux network optimization: Check the process ps -aux|grep mysqld. How to check the maximum number of open files?
27. What is the virtual function in C language?
28. What should I do if I want to push a meager post to 1 million fans?
29. What algorithms do you know? Bubble sort? Quick sort? Binary search method?
30. The respective advantages of yii thinkphp ci
31. What are the PHP design patterns?
32. What are the c sorting algorithms?
33. What is the basic structure of php?
34. Memcache magent distributed design?
35. How to design redis distributed design?
36. What is the mongo cluster architecture?
37. MySQL indexing principle and SQL performance optimization
38. TCP/IP network protocol, what is the osi7 layer?
39. PHP handles big data business
40. Linux application load performance check?
41. nginx practical optimization of business functions?
42. Tell us about your most successful work in the past three years?
43. Looking at your resume, you will be asked about the number of users, pv, throughput, related difficulties and solutions of some past projects
44. Database design experience, why table splitting? Database splitting?
45. What is the general amount of data to start splitting into tables? Database splitting? What is the purpose of database splitting? What is database vertical splitting? Horizontal splitting? Partitioning, etc. wait? You can give examples
46. What are the database optimizations? What should you pay attention to?
47. What kind of caches will you encounter in web development? How to optimize them?
48. I give you 256M of memory, for 10G How to sort files (1 number per line of file)?
49. How to search for 10G files?
50. How to count the number of occurrences of each keyword in a 10G file?
51. If you are now the designer of 12306 train ticket booking, how should you design to satisfy the needs of people across the country?
52. If there are 100 million user visits, what is your server architecture? Users How to design an information storage solution?
53. If you are a technical team leader and the team you lead cannot complete the task progress, how should you solve it?
54. If you insert a task when the schedule is full, what should you do? Ensure that the overall progress is not delayed?
55. If some engineers have not completed their scheduled tasks today, how should you solve it?
56. From your experience, talk about how to build a high-performance web site? What are the steps? ? What should be paid attention to in each step, how to optimize it, etc.?
57. Why should we separate the database from master and slave?
58. How to deal with multi-server shared sessions?
59. For a 10G table, you use PHP The program counts the number of times a certain field appears. The idea is?
60. I will tell you an nginx log example. Use the programming language you think is the best to count the top 10 URLs with http response times exceeding 1 second?
61. Give you a mysql configuration file, use the programming language you think is the best to parse the file?
62. Give you two paths a and b, write an algorithm or idea to calculate the gap between a and b and display a The intersection with b?
63. Give you a url, configure rewrite in nginx and specify it to a specific path?
64. What is the interpretation process of a PHP file? What are the general methods to speed up PHP? What technologies are used to improve the overall performance of PHP?
65. What is the difference between the life cycle of session and cookie? The difference in storage location?
66. require, include , require_once, include_once difference? Loading difference? If the program loads a php file on demand, how do you implement it?
67. Chrome is called multi-threaded, so the difference between multi-threading and multi-process is?
68. php A hash collision occurred at the end of 2011. What is the principle of hash collision? How to repair it?
69. What are the insecure factors of the web? How to prevent them?
70. If two singly linked lists intersect, write an optimal algorithm calculation You can also talk about ideas at the intersection location?
71. If you are the technical team leader? How to improve team efficiency?
72. What are the nginx load balancing? If one of the servers hangs up, how to implement the alarm mechanism?
73. Without optimization, what is the general maximum number of connections for Apache? What is the general maximum number of connections for nginx? Mysql insert per second? select? update? delete?
74. What are the data types of mysql? How much storage space do they occupy? ?
75. nginx sets up caching of js, css, pictures and other information. The implementation principle of caching is?
76. How to improve the cache hit rate? How to granularize the cache?
77. PHP memory recycling The mechanism is?
78. I have asked all my questions (of course not so many). Do you have any questions for me?

What’s still popular is the ease of use, flexibility and a strong ecosystem. 1) Ease of use and simple syntax make it the first choice for beginners. 2) Closely integrated with web development, excellent interaction with HTTP requests and database. 3) The huge ecosystem provides a wealth of tools and libraries. 4) Active community and open source nature adapts them to new needs and technology trends.

PHP and Python are both high-level programming languages that are widely used in web development, data processing and automation tasks. 1.PHP is often used to build dynamic websites and content management systems, while Python is often used to build web frameworks and data science. 2.PHP uses echo to output content, Python uses print. 3. Both support object-oriented programming, but the syntax and keywords are different. 4. PHP supports weak type conversion, while Python is more stringent. 5. PHP performance optimization includes using OPcache and asynchronous programming, while Python uses cProfile and asynchronous programming.

PHP is mainly procedural programming, but also supports object-oriented programming (OOP); Python supports a variety of paradigms, including OOP, functional and procedural programming. PHP is suitable for web development, and Python is suitable for a variety of applications such as data analysis and machine learning.

PHP originated in 1994 and was developed by RasmusLerdorf. It was originally used to track website visitors and gradually evolved into a server-side scripting language and was widely used in web development. Python was developed by Guidovan Rossum in the late 1980s and was first released in 1991. It emphasizes code readability and simplicity, and is suitable for scientific computing, data analysis and other fields.

PHP is suitable for web development and rapid prototyping, and Python is suitable for data science and machine learning. 1.PHP is used for dynamic web development, with simple syntax and suitable for rapid development. 2. Python has concise syntax, is suitable for multiple fields, and has a strong library ecosystem.

PHP remains important in the modernization process because it supports a large number of websites and applications and adapts to development needs through frameworks. 1.PHP7 improves performance and introduces new features. 2. Modern frameworks such as Laravel, Symfony and CodeIgniter simplify development and improve code quality. 3. Performance optimization and best practices further improve application efficiency.

PHPhassignificantlyimpactedwebdevelopmentandextendsbeyondit.1)ItpowersmajorplatformslikeWordPressandexcelsindatabaseinteractions.2)PHP'sadaptabilityallowsittoscaleforlargeapplicationsusingframeworkslikeLaravel.3)Beyondweb,PHPisusedincommand-linescrip

PHP type prompts to improve code quality and readability. 1) Scalar type tips: Since PHP7.0, basic data types are allowed to be specified in function parameters, such as int, float, etc. 2) Return type prompt: Ensure the consistency of the function return value type. 3) Union type prompt: Since PHP8.0, multiple types are allowed to be specified in function parameters or return values. 4) Nullable type prompt: Allows to include null values and handle functions that may return null values.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

Dreamweaver Mac version
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

WebStorm Mac version
Useful JavaScript development tools