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

Video Face Swap

Video Face Swap

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

Hot Article

Roblox: Bubble Gum Simulator Infinity - How To Get And Use Royal Keys
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Nordhold: Fusion System, Explained
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Mandragora: Whispers Of The Witch Tree - How To Unlock The Grappling Hook
3 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)

Hot Topics

Java Tutorial
1665
14
PHP Tutorial
1270
29
C# Tutorial
1250
24
How to uninstall MySQL and clean residual files How to uninstall MySQL and clean residual files Apr 29, 2025 pm 04:03 PM

To safely and thoroughly uninstall MySQL and clean all residual files, follow the following steps: 1. Stop MySQL service; 2. Uninstall MySQL packages; 3. Clean configuration files and data directories; 4. Verify that the uninstallation is thorough.

What is the significance of the session_start() function? What is the significance of the session_start() function? May 03, 2025 am 12:18 AM

session_start()iscrucialinPHPformanagingusersessions.1)Itinitiatesanewsessionifnoneexists,2)resumesanexistingsession,and3)setsasessioncookieforcontinuityacrossrequests,enablingapplicationslikeuserauthenticationandpersonalizedcontent.

Steps to add and delete fields to MySQL tables Steps to add and delete fields to MySQL tables Apr 29, 2025 pm 04:15 PM

In MySQL, add fields using ALTERTABLEtable_nameADDCOLUMNnew_columnVARCHAR(255)AFTERexisting_column, delete fields using ALTERTABLEtable_nameDROPCOLUMNcolumn_to_drop. When adding fields, you need to specify a location to optimize query performance and data structure; before deleting fields, you need to confirm that the operation is irreversible; modifying table structure using online DDL, backup data, test environment, and low-load time periods is performance optimization and best practice.

An efficient way to batch insert data in MySQL An efficient way to batch insert data in MySQL Apr 29, 2025 pm 04:18 PM

Efficient methods for batch inserting data in MySQL include: 1. Using INSERTINTO...VALUES syntax, 2. Using LOADDATAINFILE command, 3. Using transaction processing, 4. Adjust batch size, 5. Disable indexing, 6. Using INSERTIGNORE or INSERT...ONDUPLICATEKEYUPDATE, these methods can significantly improve database operation efficiency.

How to use MySQL functions for data processing and calculation How to use MySQL functions for data processing and calculation Apr 29, 2025 pm 04:21 PM

MySQL functions can be used for data processing and calculation. 1. Basic usage includes string processing, date calculation and mathematical operations. 2. Advanced usage involves combining multiple functions to implement complex operations. 3. Performance optimization requires avoiding the use of functions in the WHERE clause and using GROUPBY and temporary tables.

Recommended Laravel's best expansion packs: 2024 essential tools Recommended Laravel's best expansion packs: 2024 essential tools Apr 30, 2025 pm 02:18 PM

The essential Laravel extension packages for 2024 include: 1. LaravelDebugbar, used to monitor and debug code; 2. LaravelTelescope, providing detailed application monitoring; 3. LaravelHorizon, managing Redis queue tasks. These expansion packs can improve development efficiency and application performance.

How to configure the character set and collation rules of MySQL How to configure the character set and collation rules of MySQL Apr 29, 2025 pm 04:06 PM

Methods for configuring character sets and collations in MySQL include: 1. Setting the character sets and collations at the server level: SETNAMES'utf8'; SETCHARACTERSETutf8; SETCOLLATION_CONNECTION='utf8_general_ci'; 2. Create a database that uses specific character sets and collations: CREATEDATABASEexample_dbCHARACTERSETutf8COLLATEutf8_general_ci; 3. Specify character sets and collations when creating a table: CREATETABLEexample_table(idINT

Composer: The Package Manager for PHP Developers Composer: The Package Manager for PHP Developers May 02, 2025 am 12:23 AM

Composer is a dependency management tool for PHP, and manages project dependencies through composer.json file. 1) parse composer.json to obtain dependency information; 2) parse dependencies to form a dependency tree; 3) download and install dependencies from Packagist to the vendor directory; 4) generate composer.lock file to lock the dependency version to ensure team consistency and project maintainability.

See all articles