面试时间:2019 年 11 月 5 日,星期二,下午三点。
现在使用的 PHP 版本,有哪些新特性。
PHP 7.2
https://tanghengzhi.com/whats-new-in-php-72/
聊一聊PHP SPL,迭代器和生成器。
/**
* https://www.php.net/manual/en/intro.spl.php
**/
The Standard PHP Library (SPL) is a collection of interfaces and classes that are meant to solve common problems.
No external libraries are needed to build this extension and it is available and compiled by default in PHP 5.0.0.
SPL provides a set of standard datastructure, a set of iterators to traverse over objects, a set of interfaces, a set of standard Exceptions, a number of classes to work with files and it provides a set of functions like spl_autoload_register()
/**
* https://www.php.net/manual/zh/class.iterator.php
**/
/**
* https://www.php.net/manual/zh/language.generators.overview.php
**/
TCP 和 UDP 的区别。
UDP TCP
是否连接 无连接 面向连接
是否可靠 不可靠传输,不使用流量控制和拥塞控制 可靠传输,使用流量控制和拥塞控制
连接对象个数 支持一对一,一对多,多对一和多对多交互通信 只能是一对一通信
传输方式 面向报文 面向字节流
首部开销 首部开销小,仅8字节 首部最小20字节,最大60字节
适用场景 适用于实时应用(IP电话、视频会议、直播等) 适用于要求可靠传输的应用,例如文件传输
https://segmentfault.com/a/1190000018582150
什么是 Socket 编程。
Socket 是对TCP/IP协议的封装,Socket本身并不是协议,而是一个调用接口(API),通过Socket,我们才能使用TCP/IP协议。
https://www.jianshu.com/p/f671d3895d13
MySQL 索引。
https://dev.mysql.com/doc/refman/8.0/en/optimize-overview.html
MySQL 事务。
https://dev.mysql.com/doc/refman/8.0/en/glossary.html#glos_transaction
MySQL 读写分离。
'mysql' => [
'read' => [
'host' => [
'192.168.1.1',
'196.168.1.2',
],
],
'write' => [
'host' => [
'196.168.1.3',
],
],
'sticky' => true,
'driver' => 'mysql',
'database' => 'database',
'username' => 'root',
'password' => '',
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
],
https://laravel.com/docs/6.x/database
常见的 Redis 数据结构。
https://www.runoob.com/redis/redis-data-types.html
Redis 集合(Set) 常用命令。
https://www.runoob.com/redis/redis-sets.html
Redis cluster 原理。
https://redis.io/topics/cluster-tutorial
Git Rebase
https://git-scm.com/book/en/v2/Git-Branching-Rebasing
https://docs.microsoft.com/en-us/azure/devops/repos/git/merging-with-squash?view=azure-devops
Git 工作原理
http://marklodato.github.io/visual-git-guide/index-zh-cn.html
434 total views, 1 views today