摘要: $conn_string_array = array('server'=>'127.0.0.1','user'=>'root','password'=>'1230','database'=>'finepvol');$conn = db::connect($conn_string_array);$sql = "select name,insert_time from test";$stmt = db::query($sql); 阅读全文
posted @ 2012-06-04 23:09 finepvol 阅读(182) 评论(0) 推荐(0) 编辑
摘要: PHP Array 函数PHP:指示支持该函数的最早的 PHP 版本。函数描述PHParray()创建数组。3array_change_key_case()返回其键均为大写或小写的数组。4array_chunk()把一个数组分割为新的数组块。4array_combine()通过合并两个数组来创建一个新数组。5array_count_values()用于统计数组中所有值出现的次数。4array_diff()返回两个数组的差集数组。4array_diff_assoc()比较键名和键值,并返回两个数组的差集数组。4array_diff_key()比较键名,并返回两个数组的差集数组。5array_di 阅读全文
posted @ 2012-06-04 23:03 finepvol 阅读(162) 评论(0) 推荐(0) 编辑
摘要: <?php$test_right_string = "test@163.com";$test_wrong_string = "test163.com";var_dump(filter_var($test_right_string,FILTER_VALIDATE_EMAIL));var_dump(filter_var($test_wrong_string,FILTER_VALIDATE_EMAIL));//使用 ?test='test163.com' 测试var_dump(filter_input(INPUT_GET,"te 阅读全文
posted @ 2012-06-04 22:45 finepvol 阅读(281) 评论(0) 推荐(0) 编辑