Write a PHP script to extract text (within parenthesis) from a string.
Sample strings : 'The quick brown [fox].'
<?php $my_text = 'The quick brown [fox].'; preg_match('#\[(.*?)\]#', $my_text, $match); print $match[1]."\n"; ?>
Sample Output:
fox
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer