Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在$val我得到这个值SimpleXMLElement Object ( [0] => 464)。我如何将价值放在[0]ie464中。我尝试使用 foreach 但它不起作用。任何帮助表示赞赏。
$val
SimpleXMLElement Object ( [0] => 464)
[0]
464
<?php $doc = new SimpleXMLElement('<foo>464</foo>'); $a = (int)$doc; // or (string) print_r($doc); print_r($a);
印刷
SimpleXMLElement Object ( [0] => 464 ) 464