PHP, explode multiple words and prefix them with a character
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/7617639/add-a-prefix-to-each-item-of-a-php-array">Add a prefix to each item of a PHP array</a>  </p>
</blockquote>



<p>I try to use Boolean mode full text search.</p>

<p>If a user types more than two words, it supposes to make like this.</p>

<pre><code>Search Keyword :   Apple Macbook Air 

Result :   +Apple +Macbook +Air
</code></pre>

<p>So, I made a php command to make this happen, but didn't work.</p>

<pre><code>$ArrayKeywords = explode(" ", $b_keyword);
for($i = 0; $i &lt; sizeof($ArrayKeywords); $i++)
$array_keyword = '+"$ArrayKeywords[$i]" ';
</code></pre>

<p>can you tell me how to make this happen?</p>
