PHP string question
<p>This is probably a very simple one to be answered...</p>

<p>I have a piece of code which I need to pull a certain piece of information.</p>

<pre><code>&lt;?php echo $this-&gt;getLayout()-&gt;createBlock('cms/block')-&gt;setBlockId('XXXX')-&gt;toHTML();?&gt;
</code></pre>

<p>For this to work I need the XXXX part to pull the result of the following query:</p>

<pre><code>&lt;?php echo $_product-&gt;getAttributeText('warranty') ?&gt;
</code></pre>

<p>So the output from the above query will then be the information needed to go in to XXXX.</p>

<p>This markup is completely wrong below but should demonstrate the idea I am trying to achieve: </p>

<pre><code>&lt;?php echo $this-&gt;getLayout()-&gt;createBlock('cms/block')-&gt;setBlockId('&lt;?php echo $_product-&gt;getAttributeText('warranty') ?&gt;')-&gt;toHTML();?&gt;
</code></pre>
