PHP How to add plus (+) character before double quotes and words without double quotes in string : <p>I have below string :</p>

<pre><code>'this is a "text field" need "to replace"'
</code></pre>

<p>And I want to add plus (+) character before every un-double quotes words and double quotes like below:</p>

<pre><code>'+this +is +"text field" +need +"to replace"'
</code></pre>

<p>is there any way to perform such action? I tried with str_replace and regex but cant figure out how to do it. </p>

<p>Thanks in advanced.</p>
