Posts with the tag 'PHP'

PHP:两个数组合并,相同键名的值相加

$array1 = array(‘a’=>1,’b'=>2);
$array2 = array(‘b’=>1,’c'=>5,’d'=>4);
foreach ((array)array_intersect(array_keys($array1),array_keys($array2)) as $key){
$mixed[$key] = $array1[$key]+$array2[$key];
unset($array1[$key],$array2[$key]);
}
$mixed = array_merge($array1,$array2,(array)$mixed);

Add comment 十二月 30th, 2009

PHP中二维数组的排序方法

本文介绍的是从 BugFree 摘录来的二维数组排序函数,可以实现类似 MySQL 的 ORDER BY 效果,当数组不是从数据库取得时会有特殊应用。
PHP:

Add comment 十二月 29th, 2009

PHP图表生成程序

1、Image_Graph
基于 Pear 库的图表程序。
Demo:http://pear.veggerby.dk/samples/

2、Open Flash Chart
基于 Flash 的图表程序。
网站:http://teethgrinder.co.uk/open-flash-chart/

3、PLCharts
轻量级基于 GD 库的 PHP 画图程序(可生成雷达图)。
网站:http://www.plchart.net/
Demo:http://www.plchart.net/demo/demo.html

Add comment 一月 12th, 2008

1 of 11

 

2010年三月
« 二    
1234567
891011121314
15161718192021
22232425262728
293031  

分类目录

标签

书签 优化 参数 命令 啪嗒砰 域名 备份 字体 安装 导入 导出 扩展 换行 文字 正则 爬虫 解决办法 路径 道具 错误 镜像 19楼 Apache awk AWstats CentOS CPAN EditPlus Firefox GD GeoIP Google IBM Linux mysql OUTLOOK Patapon perl photoshop PHP profile rsync sed Shell Thunderbird

最近文章

最近评论

文章索引模板

功能

SEO Powered by Platinum SEO from Techblissonline