title: Php Image variable
body: <p>I am trying to assign an image src to a variable, that doesn't seem to work.<br>
  I am pretty sure I am missing a <code>"</code> or a <code>'</code> but I have just about tried every combination now.<br>
  The second issue I have is that I want to use two variables and concatenate doesn't seem to work.</p>
  
  <p>see below: <code>$item.$image</code></p>
  
  <p>Any help would be appreciated. </p>
  
  <pre><code>&lt;li class="first"&gt;                                    
  &lt;?php
  $image =  "&lt;img src="&lt;?php echo base_url() . "assets/" . "menuicon.png" /&gt;
  
  if (!empty($pcategory)) 
  {
     foreach ($pcategory as $key =&gt; $item) 
     {
        echo "&lt;li&gt;&lt;a href='" . site_url() . "cat/$key'&gt;$item.$image&lt;/a&gt;&lt;/li&gt;"; 
     } 
  }
  ?&gt;
  &lt;/li&gt;   
  </code></pre>