摘要: 一、数组操作的基本函数数组的键名和值array_values($arr); 获得数组的值array_keys($arr); 获得数组的键名array_flip($arr); 数组中的值与键名互换(如果有重复前面的会被后面的覆盖)in_array("apple",$arr); 在数组中检索applea... 阅读全文
posted @ 2014-10-17 16:03 牵着狗狗去看海 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 1.php字符串函数的回顾 //php查找函数,用来定位你查找的字符串出现的位置 strpos(string position ) 字符串定位函数 strpos($strA,$strB) 用来查询字符串$strB在字符串$str中出现的位置,这个函数是严格的区分大小写的 。 stripos() 与上... 阅读全文
posted @ 2014-10-17 10:50 牵着狗狗去看海 阅读(128) 评论(0) 推荐(0) 编辑