title: Getting an error when concatenating
body: <p>This is my code...</p>
  
  <pre><code>&lt;?php
  
  $j = 1;
  $imgClass = "cname";
  $imgSet = 'imgSet'.$j;
  $setClass = $imgSet.' '.$imgClass;
  
  $divHtml = '&lt;div class=' . $setClass . '&gt;' .'some text'. '&lt;/div&gt;';
  
  echo $divHtml;
  
  ?&gt;
  </code></pre>
  
  <p>Desired output was:</p>
  
  <pre><code>&lt;div class="imgSet1 cname"&gt;some text&lt;/div&gt;
  </code></pre>
  
  <p>Current output is:</p>
  
  <pre><code>&lt;div class="imgSet1" cname=""&gt;some text&lt;/div&gt;
  </code></pre>
  
  <p>Not understanding where i went wrong...</p>
  
  <p>Thanks in advance</p>