Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Jaackie/easy-tips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

88 Commits

Repository files navigation

Easy Tips

php mysql redis patterns algorithm data-structure network


一个php技术栈后端猿的知识储备大纲

前言

为什么把php,mysql,redis放在前三位?因为php/mysql/redis基础是一个当代phper的根基。

备注

状态 含义
not-start 当前未开始总结
doing 总结中
α 目前仅供参考未修正和发布
done 总结完毕
fixing 查漏补缺修改中

目录

测试用例

设计模式

运行脚本: php patterns/[文件夹名称]/test.php

例如,
测试责任链模式: 运行 php patterns/chainOfResponsibility/test.php
运行结果:
请求5850c8354b298: 令牌校验通过〜
请求5850c8354b298: 请求频率校验通过〜
请求5850c8354b298: 参数校验通过〜
请求5850c8354b298: 签名校验通过〜
请求5850c8354b298: 权限校验通过〜

算法

运行脚本: php algorithm/test.php [算法名称|空获取列表]

例如,
测试冒泡排序: 运行 php algorithm/test.php bubble
运行结果:
==========================冒泡排序=========================
Array
(
 [0] => 11
 [1] => 67
 [2] => 3
 [3] => 121
 [4] => 71
 [5] => 6
 [6] => 100
 [7] => 45
 [8] => 2
)
=========上为初始值==================下为排序后值=============
Array
(
 [0] => 2
 [1] => 3
 [2] => 6
 [3] => 11
 [4] => 45
 [5] => 67
 [6] => 71
 [7] => 100
 [8] => 121
)

常见redis运用实现

运行脚本: php redis/test.php [名称|空获取列表]

例如,
测试悲观锁: 运行 php redis/test.php p-lock
运行结果:
执行count加1操作〜
count值为:1

纠错

如果大家发现有什么不对的地方,可以发起一个issue或者pull request,我会及时纠正,THX〜

补充:发起pull request的commit message请参考文章Commit message编写指南

感谢

感谢以下朋友的issue或pull request:

About

a little tips in my code career

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

  • PHP 100.0%

AltStyle によって変換されたページ (->オリジナル) /