array ("a"=>"orange", "b"=>"banana", "c"=>"apple"), "numbers" => array (1, 2, 3, 4, 5, 6), "holes" => array ("first", 5 => "second", "third") ); print_r ($fruits); ?> :blink:" name=description>

InfoQ

交流

讨论:用循环取数组特定值

作者 wormbaby 发布于 0000-00-00 分类:php基础编程

<?
$fruits = array (
"fruits" => array ("a"=>"orange", "b"=>"banana", "c"=>"apple"),
"numbers" => array (1, 2, 3, 4, 5, 6),
"holes" => array ("first", 5 => "second", "third")
);
print_r ($fruits);
?>
:blink:



逛论坛交流用循环取数组特定值

加入书签
digg+,
reddit+,
del.icio.us+,
dzone+

0 条回复

回复




  1. 我有话要讲:(可以匿名发表, 发广告的有多远请滚多远!!!)

    昵称: 请输入验证码:


抢着回答

有没有人用过php写传统的cgi程序?

据说可以用PHP象perl那样写传统的CGI程序,谁能给我一个代码或例...

一个字灌!

如题!

好长时间没看见sadly了,小宝宝好吗?

我想你现在应该明白当时我对你说的话了吧!

大家投票决定老大对xltxlm的决定对吗?...

你们认对老大对xltxlm这样子做是对的话,就投对。认为不对的就投...

这是什么错误?程序导致的~!

http://www.onlinesl.com/knighte/ ... on%201.5.0/mytp.php ...

如何表示这个数组

这有一组数 1,4,rn2,6,rn3,7,rn...rn rn为数组标识,数组里有...

关注在线编辑器,已经搁置一段时间了!

前段时间大家关注比较多的在线编辑器已经搁置一段时间了. 不...

发现一个问题!!!

:cool: :cool: :cool: 最近是不是出了一种还原卡。就是插在主...

php在window下有30天的限制吗?

php在window下有30天的限制吗?

看看,汔瀹稹痄宥

http://news.sina.com.cn/s/2003-06-22/16561205326.shtml

[]