Getting the text portion of a node using php Simple XML

前端 未结 7 2148
臣服心动
臣服心动 2020-12-03 18:39

Given the php code:

$xml = <<
This is a link Title with some text following it.
7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 19:38

    Like @tandu said, it's not possible, but if you can modify your XML, this will work:

    $xml = <<
        
    This is a link
    Title
    with some text following it.

提交回复
热议问题