title: How to get the string-type content of the XML element (SimpleXMLElement), that is parsed by PHP simplexml_load_string?
body: <p>I have the PHP 8 code:</p>
  <pre><code>$test = '&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
          &lt;FDL&gt;
              &lt;TITLE&gt;
                  &lt;Title&gt;Test element&lt;/Title&gt;
              &lt;/TITLE&gt;  
          &lt;/FDL&gt;';
      $test_obj = simplexml_load_string($test);
      var_dump($test_obj-&gt;TITLE-&gt;Title);
      var_dump($test_obj-&gt;TITLE-&gt;Title-&gt;children);
  </code></pre>
  <p>Which returns:</p>
  <pre><code>object(SimpleXMLElement)#5 (1) {
      [
          0
      ]=&gt;
    string(12) &quot;Test element&quot;
  }
  object(SimpleXMLElement)#3 (0) {}
  </code></pre>
  <p>And that is my problem - the <code>$test_obj-&gt;TITLE-&gt;Title</code> and <code>$test_obj-&gt;TITLE-&gt;Title-&gt;children</code> return objects (SimpleXMLElement), but I am interested in the string-type content of this element? How can I access it? Of course, if I am using echo (instead of var_dump) in my previous code then I can see the string type content, but under the cover - this is not string type variable and it does not behave as string type variable in the further PHP code where I am trying to use it.</p>
  <p>So - how to the the string type content from the SimpleXMLElement?</p>