How select part of string between two brackets.
An example select kanych
from (kanych) Kurva Ggglo
You can use a regular expression:
/ ... / begin and end
\( ... \) the brackets of your choice (round brackets have to be escaped)
( ... ) remember the content
[^\)]* the content, every character except the bracket
php:
$sTest = "(kanych) Kurva Ggglo";
preg_match("/\(([^\)]*)\)/", $sTest, $aMatches);
$sResult = $aMatches[1];
Also see this example.
P.s.: with preg_match_all(...)
you can get all bracket contents from a string.
$str = "lolo (kanya) momomo";
$openstrpos = strpos($str,"(" );
$closestrpos = strpos($str,")");
$finalstr = substr($str, $openstrpos+1, $closestrpos-$openstrpos-1);
One of the way you can get required output