PHP生成XML文档 PHP 日期时间函数 timezone_transitions_get() PHP XML文档 PHP生成XML文档 <?php $channel = array('title' => "What's For Dinner", 'link' => 'http://menu.example.com/', 'description' => 'Choose what to eat tonight.'); print "<channel>\n"; foreach ($channel as $element => $content) { print " <$element>"; print htmlentities($content); print "</$element>\n"; } print "</channel>"; ?> PHP 日期时间函数 timezone_transitions_get() PHP XML文档