title: PHP explode string, concat with search url and echo it
body: <p>I have names of actors in variable <code>$actor</code></p>
  
  <p>Example:</p>
  
  <pre><code>Actor One, Actor Two,Someone
  </code></pre>
  
  <p>I need to split the string per person. I figured I'd use explode to get something like this:</p>
  
  <pre><code>[0] =&gt; Actor One
  [1] =&gt; Actor Two
  [2] =&gt; Someone
  </code></pre>
  
  <p>Then I need to build search links in following format:</p>
  
  <pre><code>http://site.com/?s=Actor+One
  http://site.com/?s=Actor+Two
  http://site.com/?s=Someone
  </code></pre>
  
  <p>And finally echo it like this:</p>
  
  <pre><code>&lt;a href='http://site.com/?s=Actor+One'&gt;Actor One&lt;/a&gt;, &lt;a href='http://site.com/?s=Actor+Two'&gt;Actor Two&lt;/a&gt;, &lt;a href='http://site.com/?s=Someone'&gt;Someone&lt;/a&gt;
  </code></pre>
  
  <p>I'm just totally lost in PHP syntax. Help is appreciated.</p>