开发者

how to display array items whthout knwoing its number?

How to display an array content without using a while loop? coz I don't know how items a开发者_如何学Cre within, and without using the function print_r() that displays items with a specific way: array([0]=>..) I want to display items one by one, exemple: PHP - Ajax - JSON - DOM, u got it? How to achieve that guys?


foreach($array as $value){...}

See the manual

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜