排序
php 根据日期 指定时间 生日计算年龄
if (!function_exists('get_age')){ function get_age($birthday){ $iage = 0; $year = date('Y',strtotime($birthday)); $month = date('m',strtotime($birthday)); $day = date('d',strtotime...
Laravel No application encryption key has been specified
创建项目后运提示此错误,这是因为没有配置好 APP_KEY。解决方法:进入项目根目录执行php artisan key:generate
PHP在变量前面加&是什么意思
变量的引用PHP的引用允许你用两个变量来指向同一个内容<?php $a='ABC'; $b =&$a; echo $a;//这里输出:ABC echo $b;//这里输出:ABC $b='DEF'; echo $a;//这里$a的值变为DEF 所以输出DEF e...
php去除HTML标签、图像等仅保留文本
if (!function_exists('strip_html_tags')) { /** * 去除HTML标签、图像等 仅保留文本 * @param $str * @param int $length * @return array|string|string[]|null */ function strip_html_tags...
wordpress配置伪静态
Apache<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRu...
SpringBoot 整合 Swagger3 实现在线 API 文档
1、引入 Swagger3 依赖<!-- 引入Swagger3依赖 --> <dependency> <groupId>io.springfox</groupId> <artifactId>springfox-boot-starter</artifactId> <...
mysql数据结构导出excel
SELECT COLUMN_NAME 列名, DATA_TYPE 数据类型, IS_NULLABLE 是否为空, COLUMN_COMMENT 备注 FROM INFORMATION_SCHEMA.COLUMNS WHERE table_schema ='数据库名' AND table_name = '表名'
SpringBoot 整合 Swagger2 实现在线 API 文档
什么是 Swagger?Swagger 是一个开源软件框架,可以帮助开发人员设计、构建、记录和使用 RESTful Web 服务,它将代码和文档融为一体,可以完美解决文档编写繁琐、维护不方便等问题。使得开发人...
js进入页面自动加载的几种方式
直接写到html标签里<html> <body onload='load();'> </body> </html>js中调用<script type='text/javascript'> function myfun() { alert('this window.onload')...
pecl的安装
下载//curl Mac自带 curl -O https://pear.php.net/go-pear.phar安装sudo php -d detect_unicode=0 go-pear.phar //执行以上命令后会进行安装过程,会有一些配置选项 输入1,回车,配置pear路径...