title: Using SOAP to generate XML attributes in PHP
body: <p>I found you can generate this in SOAP in php:</p>
  
  <pre><code>&lt;foo bar="blah"&gt;12345&lt;/foo&gt;
  </code></pre>
  
  <p>With this:</p>
  
  <pre><code>array("foo" =&gt; array("_" =&gt; 12345, "bar" =&gt; "blah"));
  </code></pre>
  
  <p>However, the underscore method does not seem to work when the value is not a number and string, but instead <em>embedded xml code</em>.  How would you do this for instance?</p>
  
  <pre><code>&lt;foo bar="blah"&gt;
      &lt;aaa a="b"&gt;blah&lt;/aaa&gt;
  &lt;/foo&gt;
  </code></pre>
  
  <p>This is an extension of this person's question:
  <a href="http://www.bigresource.com/Tracker/Track-php-uQwDoUib/" rel="nofollow noreferrer">http://www.bigresource.com/Tracker/Track-php-uQwDoUib/</a></p>