"Fully original series"
Record my learning process on the road to becoming a PHPer and Gopher
English Version
If the foundation is not strong, the earth will shake. I would like to remind myself with this sentence.
state | meaning |
---|---|
Summary not started yet | |
In summary | |
Currently for reference only, uncorrected and unpublished | |
Summary completed | |
Checking for leaks and filling in gaps. Modification is in progress. |
Run the script: php patterns/[folder name]/test.php
例如,
测试责任链模式: 运行 php patterns/chainOfResponsibility/test.php
运行结果:
请求5850c8354b298: 令牌校验通过~
请求5850c8354b298: 请求频率校验通过~
请求5850c8354b298: 参数校验通过~
请求5850c8354b298: 签名校验通过~
请求5850c8354b298: 权限校验通过~
Run the script: php algorithm/test.php [algorithm name | empty get list]
例如,
测试冒泡排序: 运行 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
)
Run the script: php redis/test.php [name | empty get list]
例如,
测试悲观锁: 运行 php redis/test.php p-lock
运行结果:
执行count加1操作~
count值为:1
If you find anything wrong, you can initiate an issue or pull request and I will correct it in time, THX~
Supplement: Please refer to the article Commit message writing guide for the commit message that initiates the pull request.
Due to the requirements of foreign developers and limited personal time, we are soliciting interest from everyone to translate this project into English. I hope foreign developers can also benefit from this project ~
Translation document claim application: #36
This project exists thanks to all the people who contribute.
Thank you to all our backers! [Become a backer]
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]