![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PHP
林0507
这个作者很懒,什么都没留下…
展开
-
PHP定界符
1.PHP定界符的作用就是按照原样,包括换行格式什么的,输出在其内部的东西; 2.在PHP定界符中的任何特殊字符都不需要转义; 3.PHP定界符中的PHP变量会被正常的用其值来替换。 定界符格式:<<<EOTcontent...EOT;注意事项:<<<之后的EOT是自定义的,随便什么都可以,结尾字符相同即可。<<<EOT后不能有空格结尾EOT;前后不能后其他字符,包括空格 定界符原创 2017-05-01 11:49:35 · 456 阅读 · 0 评论 -
PHP正则表达式
preg_match 正则函数 以Perl语言为基础preg_match(mode, string subject, array matches); preg_match(表达式,源内容,结果数组)ereg正则函数 以 POSIX基础(Unix Script) ereg(mode, string subject, array regs)preg_match_all(string pattern原创 2017-05-01 11:54:12 · 481 阅读 · 0 评论 -
解决composer提示The openssl extension is required for SSL/TLS protection...
错误提示 The openssl extension is required for SSL/TLS protection but is not availab le. If you can not enable the openssl extension, you can disable this error , at your own risk, by setting ...原创 2018-03-10 17:34:52 · 13467 阅读 · 0 评论 -
PHP使用Beanstalkd消息队列
Beanstalkd,一个高性能、轻量级的分布式内存队列系统 安装参考GitHub:https://github.com/kr/beanstalkd 启动Beanstalkd : beanstalkd -l 127.0.0.1 -p 11300队列的使用场景:异步处理、系统解耦、定时处理。Beanstalk的特性优先级(priority)延迟(delay)...原创 2018-03-04 20:16:12 · 1557 阅读 · 0 评论 -
Lumen(laravel) 验证器
参考文档官方文档 laravel学院文档用法在控制器中使用直接调用Lumen 的控制器基类使用 ProvidesConvenienceMethods trait,因此可以直接在控制器中调用validate方法 public function validate(Request $request, array $rules, array $messages = ...原创 2018-08-17 14:05:09 · 2367 阅读 · 0 评论