Home Backend Development PHP Tutorial Common interview questions for PHPers with 3-5 years of experience

Common interview questions for PHPers with 3-5 years of experience

Jul 29, 2016 am 09:13 AM
mysql nbsp nginx php redis

I saw that there are many, so 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 index is used in the select statement? explain
9. Do you use a third-party library for sphinx’s Chinese word segmentation library 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, or data mining, or big data processing?
13. PHP is oriented towards objects: 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’s 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 exam systems,
20. MySQL design basics: three major paradigms, functions->Thinkingmap, the first step in creating tables What are fields?
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 one WeChat post to 1 million fans?
29. What algorithms do you know? Bubble Sort? Quick sort? Binary search method?
30. What are 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 indexprinciple and sqlperformance optimization
38. tcp/ip network protocol, what is the osi7 layer?
39. PHP handles big data business
40. Linux application load performance check?
41. Practical optimization of business functions of nginx?
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 perform table partitioning? Database partitioning? 45. How much data volume is generally used to start partitioning? Database partitioning? What is the purpose of database partitioning and table partitioning? What is database vertical splitting? Horizontal splitting? Partitioning, etc.? You can give examples
46. What are the database optimizations? What should you pay attention to?
47. What caches will you encounter in web development? How to optimize them?
48. Give you 256M of memory to sort 10G files (each file row 1 number), how to achieve it?
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? User information storage scheme How to design?
53. If you are a technical team leader and your team’s task progress cannot be completed, how should you solve it?
54. If you insert a task when the schedule is full, how should you 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 links are required? What steps? What should be paid attention to in each step and how to optimize it?
57. Why is it necessary to separate the database from master and slave?
58. How to handle multi-server shared sessions?
59. For a 10G table, you use a PHP program to count the number of times a certain field appears. What is the idea?
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. Given two paths a and b, write an algorithm or idea to calculate the distance between a and b and display the intersection of a and b?
63. Give you a url, configure rewrite in nginx to specify 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. session What is the difference between cookie life cycle and cookie life cycle? What is the difference between storage location?
66, require, include, require_once, include_once? What is the difference between loading? 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 had a hash collision at the end of 2011. What is the principle of hash collision? How to fix it?
69. What are the insecure factors of web? What are the differences? Prevention?
70. If two singly linked lists intersect, write an optimal algorithm to calculate the intersection position, and you can also talk about the idea?
71. What 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. mysql What are the data types? How much storage space do they occupy?
75. nginx is set to cache js, css, pictures and other information. What is the implementation principle of caching?
76. How to improve the cache hit rate? How to granularize the cache?
77. What is the memory recycling mechanism of PHP?
78. I have asked all my questions (of course not so many). Do you have any questions for me?

The above introduces the common interview questions for PHPers with 3-5 years of experience, including performance optimization, blogging, require, include, and singleton mode. I hope it will be helpful to friends who are interested in PHP tutorials.

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

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

How to build the redis cluster mode How to build the redis cluster mode Apr 10, 2025 pm 10:15 PM

Redis cluster mode deploys Redis instances to multiple servers through sharding, improving scalability and availability. The construction steps are as follows: Create odd Redis instances with different ports; Create 3 sentinel instances, monitor Redis instances and failover; configure sentinel configuration files, add monitoring Redis instance information and failover settings; configure Redis instance configuration files, enable cluster mode and specify the cluster information file path; create nodes.conf file, containing information of each Redis instance; start the cluster, execute the create command to create a cluster and specify the number of replicas; log in to the cluster to execute the CLUSTER INFO command to verify the cluster status; make

The Future of PHP: Adaptations and Innovations The Future of PHP: Adaptations and Innovations Apr 11, 2025 am 12:01 AM

The future of PHP will be achieved by adapting to new technology trends and introducing innovative features: 1) Adapting to cloud computing, containerization and microservice architectures, supporting Docker and Kubernetes; 2) introducing JIT compilers and enumeration types to improve performance and data processing efficiency; 3) Continuously optimize performance and promote best practices.

PHP vs. Python: Understanding the Differences PHP vs. Python: Understanding the Differences Apr 11, 2025 am 12:15 AM

PHP and Python each have their own advantages, and the choice should be based on project requirements. 1.PHP is suitable for web development, with simple syntax and high execution efficiency. 2. Python is suitable for data science and machine learning, with concise syntax and rich libraries.

PHP: Is It Dying or Simply Adapting? PHP: Is It Dying or Simply Adapting? Apr 11, 2025 am 12:13 AM

PHP is not dying, but constantly adapting and evolving. 1) PHP has undergone multiple version iterations since 1994 to adapt to new technology trends. 2) It is currently widely used in e-commerce, content management systems and other fields. 3) PHP8 introduces JIT compiler and other functions to improve performance and modernization. 4) Use OPcache and follow PSR-12 standards to optimize performance and code quality.

Summary of phpmyadmin vulnerabilities Summary of phpmyadmin vulnerabilities Apr 10, 2025 pm 10:24 PM

The key to PHPMyAdmin security defense strategy is: 1. Use the latest version of PHPMyAdmin and regularly update PHP and MySQL; 2. Strictly control access rights, use .htaccess or web server access control; 3. Enable strong password and two-factor authentication; 4. Back up the database regularly; 5. Carefully check the configuration files to avoid exposing sensitive information; 6. Use Web Application Firewall (WAF); 7. Carry out security audits. These measures can effectively reduce the security risks caused by PHPMyAdmin due to improper configuration, over-old version or environmental security risks, and ensure the security of the database.

phpMyAdmin comprehensive use guide phpMyAdmin comprehensive use guide Apr 10, 2025 pm 10:42 PM

phpMyAdmin is not just a database management tool, it can give you a deep understanding of MySQL and improve programming skills. Core functions include CRUD and SQL query execution, and it is crucial to understand the principles of SQL statements. Advanced tips include exporting/importing data and permission management, requiring a deep security understanding. Potential issues include SQL injection, and the solution is parameterized queries and backups. Performance optimization involves SQL statement optimization and index usage. Best practices emphasize code specifications, security practices, and regular backups.

How to open phpmyadmin How to open phpmyadmin Apr 10, 2025 pm 10:51 PM

You can open phpMyAdmin through the following steps: 1. Log in to the website control panel; 2. Find and click the phpMyAdmin icon; 3. Enter MySQL credentials; 4. Click "Login".

How to use the redis command How to use the redis command Apr 10, 2025 pm 08:45 PM

Using the Redis directive requires the following steps: Open the Redis client. Enter the command (verb key value). Provides the required parameters (varies from instruction to instruction). Press Enter to execute the command. Redis returns a response indicating the result of the operation (usually OK or -ERR).

See all articles