getting rid of whitespaces in heredoc
<p>I am having this loop</p>

<pre><code>foreach ($unserialized as $key =&gt; $value) {
 $foo = &lt;&lt;&lt;EOT
&lt;div class='krudItem' id='xxx'&gt;&lt;form class='aj' name='itemForm' method='post'
 action=''&gt;&lt;section&gt;&lt;label&gt;Slider Title&lt;/label&gt;&lt;input type='hidden'
 name='sliderKey' value=$key/&gt;&lt;input type='text' name='sliderTitle' value='$value 
 ['slidertitle']'/&gt;&lt;/section&gt;&lt;section&gt; &lt;label&gt;Slider Location&lt;/label&gt;
 &lt;input type='text' 
 name=$value['sliderlocation']value='ipsum'/&gt;&lt;/section&gt;&lt;section&gt;&lt;label&gt;Slider 
 Description&lt;/label&gt;&lt;textarea name='sliderDescription'&gt;$value
 ['sliderdescription']&lt;/textarea&gt;&lt;/section&gt;&lt;button name='saveNew' class='saveNew' 
 value='save'&gt;save&lt;/button&gt;&lt;button name='newCancel' value='cancel' 
 class='deleteNew'&gt;cancel&lt;/button&gt;&lt;/form&gt;&lt;/div&gt;
EOT;
echo $foo;
</code></pre>

<p>but everytime i run it,i get  </p>

<blockquote>
  <p>Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE),</p>
</blockquote>

<p>I have been reading what php says about <a href="http://us2.php.net/tokens" rel="nofollow">http://us2.php.net/tokens</a> and i have tried every other possible solution but the error persists.There are some white spaces but i am not sure how i would deal with them well.</p>
