首页 > phper

php 计算两数组交集两个函数

,使用 array_intersect 求两个数组的交集比使用 array_diff 求同样两个数组的并集要快。

如果要求数组 $a 与数组 $b 的差集的个数,应该使用  count($a) - count(array_intersect($a, $b)),而不要用 count(array_diff($a, $b));

阅读全文

zend studio 5.5中文乱码解决方法

zend studio 5.5中文乱码解决方法


购买zend产品的用户太少了还是我安装的问题,装好后桌面选项中竟然没有“简体中文”的语言选项了,到配置文件夹里看了一会,在系统盘中搜索XML文件desktop_options.xml(例如:C:Documents and SettingsAdministratorZDEconfig_5.5 目录下的 desktop_options.xml)

阅读全文