Parsing string using PHP
<p>I am using PHP &amp; want to parse given string:
Let say</p>

<pre><code>$str = '&lt;object width="640" height="385"&gt;&lt;param name="movie" value="http://www.youtube.com/v/W-WKYIgGBbU&amp;amp;hl=en_US&amp;amp;fs=1"&gt;&lt;/param&gt;&lt;param 
name="allowFullScreen" value="true"&gt;&lt;/param&gt;&lt;param name="allowscriptaccess" value="always"&gt;&lt;/param&gt;
&lt;embed src="http://www.youtube.com/v/W-WKYIgGBbU&amp;amp;hl=en_US&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" 
allowfullscreen="true" width="100" height="100"&gt;&lt;/embed&gt;
&lt;/object&gt;';
</code></pre>

<p>and I just need </p>

<pre><code>$output = '&lt;embed src="http://www.youtube.com/v/W-WKYIgGBbU&amp;amp;hl=en_US&amp;amp;fs=1" type="application/x-shockwave-flash" allowscriptaccess="always" 
allowfullscreen="true" width="100" height="100"&gt;&lt;/embed&gt;';
</code></pre>

<p><strong>and set height and width to my custom value let say $width = 30 and $height = 40.</strong></p>

<p>Thanks..</p>
