Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<?php
$string = "(blah blah blah) ( bleh bleh ) (blih)";
preg_match ('@\([^\)]*\)@', $string, $result);
print trim($result[0], '()');
?>
<?php
$string = "(blah blah blah) ( bleh bleh ) (blih)";
$first_paren = strpos ($string, '(');
$second_paren = strpos ($string, ')', $first_paren + 1);
if ($first_paren !== FALSE && $second_paren !== FALSE)
{
$length = ($second_paren - $first_paren) - 1;
}
$result = substr ($string, $first_paren + 1, $length);
print $result;
?>