PHP split string into 2 variables from containing brackets
<p>I am using a regular expression <a href="http://stackoverflow.com/a/196645/560287">from</a> although this only extracts the text inside of the brackets, I want to completely remove it: </p>

<pre><code>if( preg_match( '!\(([^\)]+)\)!', $text, $match ) )
    $text = $match[1];
</code></pre>

<p>E.g I have: <code>my long text string (with another string)</code></p>

<p>How can I get:</p>

<pre><code>$var1 = "my long text string";
$var2 = "with another string";
</code></pre>
