目录(1)计算字符串字符数和字符串长度的函数。(2)合并字符串长度concat(s1,s2,…)、concat_ws(x,s1,s2,…)。(3)替换字符串的函数insert(s1,x,len,s2)。(4)字母大小写转换函数。(5)获取指定长度的字符串的函数left(s,...
Category : 程序学习
Linux最大限制数ulimit修改
修改Linux系统最大限制数:1)vi /etc/security/limits.conf,添加如下行:soft nofile 65535hard nofile 65535soft noproc 10240hard noproc 10240soft stack 8192ha...
php redis设置缓存时间方式
设置为多少秒过期$redis->set($id,$txt,999999999999);//redis缓存数据 xxx秒设置为永久$redis->set($id,$txt);$redis->persist($id);
简单的网站访问量计数器实现 php
<meta charset="UTF-8"> <title>浏览计数器</title><?php //数字输出网页计数器 $max_len = 9; $CounterFile = &quo...
php数组中怎么增加一个值
php数组中增加一个值的4种方法方法1:使用array_unshift()array_unshift()函数可以在数组开头插入一个新值<?phpheader("Content-type:text/html;charset=utf-8");$arr=array(10,1...