SimpleXMLElement Objectについて コメントを残す $xml = simplexml_load_string($output); $addr = (String)$xml->ms->addr; のように明示的にキャストしないと値がおかしい場合がある