require_once('XML/Serializer.php');

$options = array(
      'addDecl' => TRUE
    , 'encoding' => 'UTF-8'
    , 'indent' => ' '
    , 'linebreak' => "\n"
    , 'indentAttributes' => TRUE
    , 'mode' => 'simplexml'
    , 'rootName' => 'reponse'
);

$serializer = &new XML_Serializer($options);
$result = $serializer->serialize($results);
 

if ($result === TRUE) {

    $xml = $serializer->getSerializedData();
}

echo $xml;

トップ   新規 一覧 単語検索 最終更新   ヘルプ   最終更新のRSS