set keywords into array
<p>I'm using automatic php class to gets the keywords from my website page content
and the out put is exactly like</p>

<pre><code>$text = "blah word1 blah word2 blah word3 blah"
$keywords = "word1, word2, word3";
</code></pre>

<p><img src="http://i.stack.imgur.com/OPRxH.png" alt="echo $keywords;"></p>

<p>and let suppose i've </p>

<pre><code>$url = "http://www.some_site.com";
</code></pre>

<p><strong>Now</strong> i've gonna convert all that keywords that inside my text content into links by adding those keywords into array as follow</p>

<pre><code>$keyword_array = array(
"word1" =&gt; $url,
"word2" =&gt; $url,
"word3" =&gt; $url
); 
</code></pre>

<p>The question now is how then to convert</p>

<pre><code>$keywords = "word1, word2, word3";
</code></pre>

<p>into</p>

<pre><code>$keyword_array = array(
"word1" =&gt; $url",
"word2" =&gt; $url,
"word3" =&gt; $url
); 
</code></pre>

<p>since content and keywords indeed differ from page to page and can't do manually !</p>

<p>I've been thinking of using <code>explode</code> for <code>$keywords</code> but i don't know how to do it
any help ~ thanks</p>
