06 2020 档案

php数组通过值获得键
摘要:array_search($value,$array)//返回key 阅读全文

posted @ 2020-06-15 10:40 沉淀物 阅读(179) 评论(0) 推荐(0)

php 重定向
摘要:header('Location: http://www.baidu.com/') ; 阅读全文

posted @ 2020-06-13 10:12 沉淀物 阅读(81) 评论(0) 推荐(0)

php 数组排序
摘要:sort($array); //数组升序排序 rsort($array); //数组降序排序 asort($array); //根据值,以升序对关联数组进行排序 ksort($array); //根据建,以升序对关联数组进行排序 arsort($array); //根据值,以降序对关联数组进行排序 阅读全文

posted @ 2020-06-13 09:42 沉淀物 阅读(148) 评论(0) 推荐(0)

MySQL 全文搜索
摘要:1.在mysql配置文件 my.ini里设置分词大小 ngram_token_size=2 2.给需要全文搜索的列添加FULLTEXT 引索 alter TABLE `table` add FULLTEXT KEY `ft_title` (`title`,`content`) WITH PARSER 阅读全文

posted @ 2020-06-11 20:31 沉淀物 阅读(66) 评论(0) 推荐(0)

php接收josn过滤html标识转为数组
摘要:$array=json_decode(htmlspecialchars_decode($json),true); htmlspecialchars_decode()过滤html标识 json_decode()第二个参数设置为true转array,false转object 阅读全文

posted @ 2020-06-11 19:52 沉淀物 阅读(103) 评论(0) 推荐(0)

导航