摘要: 1.strstr(string $str,mixed $needle[, bool $before_needle = FALSE ]) 参数 $str 输入的字符串 $needle 查找的字符串, $before_needle 布尔值 $str = 'abc@yui' echo strstr($st 阅读全文
posted @ 2021-02-26 11:21 不一样的开始 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 一、数组的一些关于键名和值的基础操作函数1.获取数组所有的键或值:array_keys() array_values() $arr_keys = array_keys($array);$arr_values = array_values($arr); 2.交换数组中键和值的位置,若重复前面的会被后面 阅读全文
posted @ 2021-02-26 11:19 不一样的开始 阅读(165) 评论(0) 推荐(0) 编辑