上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页
摘要: 介绍:通过设置一个初始中间值,来将需要排序的数组分成3部分,小于中间值的左边,中间值,大于中间值的右边,继续递归用相同的方式来排序左边和右边,最后合并数组 代码如下: <?php $a = array(2,13,42,34,56,23,67,365,87665,54,68,3); function 阅读全文
posted @ 2020-06-17 18:09 八戒vs 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 前言:冒泡排序是一种很大众的排序算法,基本思路是,两个相邻的进行比较,如果满足条件,就交换位置,如果不满足,保持不变,依次循环到结束。 冒泡排序算法代码如下: $arr = [36, 26, 8, 21, 6, 23, 1, 3, 16]; function bubbleSort($arr) { i 阅读全文
posted @ 2020-06-17 17:50 八戒vs 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 代码如下: /* * 按月新建数据表 * */ public function create_tables(){ //获取年月 $year_time = date('Ym'); $db = Db::connect('log'); Db::startTrans(); try { $sql = "CRE 阅读全文
posted @ 2020-06-17 16:09 八戒vs 阅读(1048) 评论(0) 推荐(0) 编辑
摘要: 1,安装wget命令 yum install wget 2,在/usr/local/src目录下载源码包 wget http://cn2.php.net/distributions/php-7.2.4.tar.gz 解压源码包 tar zxvf php-7.2.4.tar.gz 3,安装编译php需 阅读全文
posted @ 2020-06-16 11:23 八戒vs 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 1,/etc/init.d/目录下缺少nginx默认启动脚本 vim /etc/init.d/nginx 新建脚本文件,然后把下面的代码复制进去 #! /bin/sh # chkconfig: 2345 55 25 # Description: Startup script for nginx we 阅读全文
posted @ 2020-06-13 17:44 八戒vs 阅读(542) 评论(0) 推荐(0) 编辑
摘要: 1,安装nginx依赖 yum -y install gcc pcre-devel zlib-devel openssl openssl-devel 如图: 安装成功: 2,下载nginx-1.17.1.tar.gz,上传至/usr/local/src目录下 下载地址:https://nginx.o 阅读全文
posted @ 2020-06-13 17:03 八戒vs 阅读(180) 评论(0) 推荐(0) 编辑
摘要: http://dezend.qiling.org/encrypt/ 阅读全文
posted @ 2020-06-10 14:15 八戒vs 阅读(482) 评论(1) 推荐(0) 编辑
摘要: 代码如下: //正则匹配表情 public function emojiFilter($msg){ $msg = "[em_4][em_11][em_11][em_12][em_12][em_12][em_12][em_12][em_19][em_19]没有啊我想看看[em_19]恶魔之眼睛的指令单 阅读全文
posted @ 2020-06-06 18:02 八戒vs 阅读(575) 评论(0) 推荐(0) 编辑
摘要: 1,https://gitlab.com/php-ai/php-ml 2,https://php-ml.readthedocs.io/en/latest/ 阅读全文
posted @ 2020-06-03 14:29 八戒vs 阅读(337) 评论(0) 推荐(0) 编辑
摘要: 1,先安装,我使用composer安装 在项目的根目录运行composer require aliyuncs/oss-sdk-php 2,安装成功以后vendor目录下可以看到如图: 3,上传图片代码如下: /* * 图片上传,将图片上传至阿里云oss * */ public function up 阅读全文
posted @ 2020-06-02 18:41 八戒vs 阅读(3035) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 17 下一页