var id_array=new Array(); $('input[name="id"]:checked').each(function(){ id_array.push($(this).val());//向数组中添加元素 }); var idst...
1.PHP 正则表达式过滤特殊字符和空格<?php function replaceSpecialChar($strParam){ $regex = "/\ |\/|\~|\!|\@|\#|\\$|\%|\^|\&|\*|\(|\)|\_|\+|\|\:|\<|...
$start_time = '2018-10-10 10:10:10'; $end_time = '2018-12-28 08:22:22'; get_time($start_time,$end_time); function get_time($start,$end){ $sta...
数组 转 对象function array_to_object($arr) { if (gettype($arr) != 'array') { return; } foreach ($arr as $k => $v) { if (g...
mysql 5.6升级到5.7出现Field * doesn't have a default value解决办法windows修改my.ini linux用户修改my.cnf(/etc/my.cnf)查找 sql-mode="STRICT_TRANS_TABLES,NO_AUT...
JS代码:<script> var noRedirect = location.search.split('noRedirect=')[1] if ( ( noRedirect == null) || noRedirect.toString() != 'tr...
session_id('id');session_start();var_dump($_SESSION);
//加密 var data = '世界你好'; var key = CryptoJS.enc.Utf8.parse('dvyYRQlnPRCMdQSe'); var iv = CryptoJS.enc.Utf8.parse('face0123456...
$data = "This is an AES crypt demo."; $privateKey = "5d4bcd5912db00c28e9ce7fd5e9b7f78"; // KEY 16字节用aes-128-cbc,32字节用aes-25...
1.下载composer.phar文件 curl -sS https://getcomposer.org/installer | php 。 curl -sS https://getcomposer.org/installer | php 2.运行 php conposer.phar ...