把字符按照逗号分割成数组
<?php
$cars=$_POST['shuju'];
$cars=explode(',', $cars);
print_r($cars)
?>
echo json_encode($arr,JSON_UNESCAPED_UNICODE); //转换成json,并让中文不变成乱码JSON_UNESCAPED_UNICODE 这...
<?php function xml_entities($string) { //过滤emod $ts_zifu= json_encode($st...
php的open_basedir设置多个路径(目录),分隔符是“:”冒号open_basedir=/www/wwwroot/www.ceshi.com/:/tmp/:/www/...
apache在windows环境设置站点目录的时候需要设置给网站目录设置USER的读写修改删除权限,否则站点会开设不成功,设置方法:如下图所示:...
$conn=new sqlhelper;for ($i = 0; $i <1000 ; $i++) {$sql="insert into system_user(user_shenfe...
用substr函数实现substr(md5(变量),8,16);就可以实现默认的md5(变量)输出的是32位加密方法...