开发者

how to display array items whthout knwoing its number?

开发者 https://www.devze.com 2023-02-17 16:16 出处:网络
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: arra

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

精彩评论

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