Summary of common high-level interview questions in PHP in 2023 (continuously updated)

(Please check the answer and more question banks. https://blog.csdn.net/t707584896/article/details/128814999

1. The PHP part

  • How PHP implements static

  • PHP classic four sorting algorithms

  • Common operating modes of PHP

  • PHP Common Design Patterns

  • How is the observer pattern implemented? How is the factory pattern implemented? How is the adapter pattern implemented? ...

  • PHP optimization scheme

  • The difference between session and cookie

  • How to implement user authentication not based on session and cookie.

  • What is CSRF attack, XSS attack? how to prevent

  • Do you understand RESTful API? Tell me what it's for.

  • Six principles of PHP design pattern

  • How to implement automatic loading? How to achieve it without composer? What is PSR-4?

  • What are abstract classes and interfaces

  • Understanding of Microservices

  • garbage collection mechanism

  • High concurrency solution

  • prevent sql injection

  • timing attack

  • What are the magic methods

  • What is the difference between object cloning and reference

  • What is composer? The meaning of composer? working principle

Second, the database

  • What are the three paradigms of database?

  • The storage engine of msyql, and their differences, the difference between myisam and innodb

  • What are mysql indexes and how do you index them?

  • mysql index optimization

  • The characteristics of mysql transactions

  • mysql read and write separation

  • How msyql divides tables, databases and tables

  • How a sql statement is executed

  • What is optimistic locking and what is pessimistic locking?

  • msyql index coverage and return table

  • msyql index failure

  • What is deadlock? What is a dirty read? Phantom reading? Non-repeatable read?

  • What to do if the CPU of the MySQL database soars to 100%?

  • What problems does MySQL master-slave replication solve?

  • What is the difference between binlog and redo log?

  • How to locate slow SQL?

  • How to optimize the query speed when there are over 100 million rows of data in a single MySQL table?

  • How to page query after tens of billions of data is divided into tables?

  • What is the difference between redis and memcache

  • What are the common data structures of redis

  • redis cache avalanche, cache penetration, cache breakdown

  • redis elimination strategy

  • How to implement redis distributed lock

  • Redis persistence mechanism

  • How does redis solve the problem of spike oversold

  • MySQL里有2000w数据,redis中只存20w数据,如何保证redis中数据都是热点数据

  • MQ消息队列你怎么选择,各大优劣

三、 服务器&其它方面

  • 说下一些你常用的linux命令

  • Linux如何搭建LAMP环境

  • 说下你对Docker的了解?

  • 常用的服务端口号

  • api接口的安全性设计

  • 如何防止数据重复提交,重复写入

  • SSO单点登陆

  • 两台 mysql 服务器,其中一台挂了,怎么让业务端无感切换,并保证正常情况下讲台服务器的数据是一致的

  • 微服务之间怎么通信

  • TCP三次握手四次挥手

  • 做一个微信抢红包的功能

  • 如何防止高并发

  • 你们用哪种版本控制?如何避免代码冲突

  • 正常请求一个php网站,在浏览器输入网址打开网站,显示网页。但是在整个请求流程中浏览器做什么?服务器又是怎么在后台执行的?接下来就简单解析下一个完整的PHP请求的执行过程。

  • 你了解socket吗?

  • swoole的了解

  • workman的了解

  • 协程的理解

  • Nginx+Php-fpm运行原理

  • 遇到一个网站打开慢怎么排查

  • 如何提高网站性能和并发能力

  • 代理与反向代理

Guess you like

Origin blog.csdn.net/t707584896/article/details/128837343
Recommended