Write a PHP script to extract text (within parenthesis) from a string
- برمجة بي اتش بي
- 2021-09-09
- mhanasmh00489829403
الأجوبة
<?php
$my_text = 'The quick brown [fox].';
preg_match('#\[(.*?)\]#', $my_text, $match);
print $match[1]."\n";
?>
Sample Output:
fox
القوائم الدراسية التي ينتمي لها السؤال