title: Getting actual value from PHP SimpleXML node
body: <pre><code>$value = $simpleXmlDoc-&gt;SomeNode-&gt;InnerNode;
  </code></pre>
  
  <p>actually assigns a simplexml object to $value instead of the actual value of InnerNode.</p>
  
  <p>If I do:</p>
  
  <pre><code>$value = $simpleXmlDoc-&gt;SomeNode-&gt;InnerNode . "\n";
  </code></pre>
  
  <p>I get the value. Anyway of getting the actual value without the clumsy looking <code>. "\n"</code>?</p>