0
私のWordPressサイトでxmlを使用すると、画面には0が表示されます アイデアはありますか?ページがちょうどゼロに印刷 おかげで(下記のコード)xmlを私のWordPressサイトで解析すると、画面には0が表示されるだけです
<?php
$xmlObject =
"<?xml version='1.0' encoding='utf-8'?>
<properties>
<property>
<listing-type>rental</listing-type>
<status>for rent</status>
</property>
</properties>";
$data = simplexml_load_string($xmlObject) or die("Our availabilities feed is temporarily unavailable. Please try again later");
$from = $data->property->listing-type;
echo $from;
?>