我怎样才能得到数组的值
我想获取“ListNumber”上的所有值,如何使用 php 循环它?提前致谢 :)
[ListNumbersList] => SimpleXMLElement Object
(
[Record] => SimpleXMLElement Object
(
[Returned] => 1
)
[ListNumber] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
)
)
i want to get all the values on "ListNumber", how can i loop it using php? thanks in advance :)
[ListNumbersList] => SimpleXMLElement Object
(
[Record] => SimpleXMLElement Object
(
[Returned] => 1
)
[ListNumber] => Array
(
[0] => 1
[1] => 2
[2] => 3
[3] => 4
[4] => 5
)
)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
foreach($listNumberList->Listnumber as $value)
回显$值;
试试这个
foreach($listNumberList->Listnumber as $value)
echo $value;
try this one