随笔 - 12
文章 - 0
评论 - 0
阅读 -
39766
09 2019 档案
排序1
摘要://选择排序 $arr = [5,3,7,2,10,8,1]; $length = count($arr); for($outer=0;$outer<$length-1;$outer++){ $min_index = $outer; for($inner=$outer+1;$inner<$lengt
阅读全文
CI框架 between and sql语句
摘要:1.在文档里没有找到关于where() between and 相应的说明 每次组合查询 要么写原生 要么连续调用where方法。 可用以下方式组合 $condition = array(); $condition['name'] = 'php'; // CI 版本 3.1.6 php7 $crea
阅读全文
AES加密 php7版本 openssl_encrypt 遇到的坑
摘要:与前端对接api ,解密不了前端加密的数据。 问题描述: 1.前端用 cryptojs 加密的 密钥是24位 , 2.后端用的php7的 openssl_encrypt 同密钥来进行解密,发现解密不了。 (注 php7.1 不在支持 mcrypt_encrypt() 等函数加密) 查询资料发现 op
阅读全文