I'm trying to figure out how to extract only text within brackets ?
This is what I have tried so far:
$str = "I only want this number,  to be in my string!";
$out = preg_match("/[(.*?)]/", $str);
echo 'What comes out? '.$out;
I know now that preg_match is NOT the solution... But how then?