title: PHP Getting apart of Name in to <a href="
body: <p>So I have this code: More explanation below</p>
  
  <pre><code>&lt;?php
  include_once 'imdb.class.php'; 
  
  $oIMDB = new IMDB('Green Lantern'); 
  
  if ($oIMDB-&gt;isReady) 
  { 
      echo '&lt;li class="withimage"&gt;&lt;span class="name"&gt;' . $oIMDB-&gt;getTitle()
           . '&lt;/span&gt;&lt;span class="comment"&gt;' . $oIMDB-&gt;getYear() 
           . '&lt;/span&gt;&lt;span class="arrow"&gt;&lt;/span&gt;&lt;/a&gt;&lt;/li&gt;'; 
  } else {
      echo '&lt;p&gt;Movie not found!&lt;/p&gt;'; 
  }
  ?&gt;
  </code></pre>
  
  <p>I want to get the "Green Lantern" word inside of a <code>&lt;a href=""&gt;</code> tag. I tried to use something with <code>'.$oIMDB-&gt;get().'</code>, but it doesn't work.</p>