私はXML文字列を関数に渡すことを考えていますが、その値とともに親ノードを返します。xmlをphp関数に渡す
例えばセイ:
$xml = "<Student><Name>Jee Pee</Name><Age>16</Age></Student>";
runXmltoStr($xml);
function runXmltoStr($xml)
{
// This is where I can't figure out where to start
// In my mind, I do have this output
//
// Student
// Name: Jee Pee
// Age: 16
}
PHP XMLパーサの読んだところから始めてください。http://php.net/manual/en/book.xml.php – ChrisW
リンクにChrisに感謝します。 –