Source Code:
(back to article)
<?php $string = "This is a (test) string."; $open = strpos($string, "("); $close = strpos($string, ")"); $text = substr($string, $open+1, $close-$open-1); echo $text;
Result:
Report an issue