Write a PHP script that checks whether a string contains another string
- برمجة بي اتش بي
- 2021-09-09
- mhanasmh00489829403
الأجوبة
<?php
$pattern = '/[^\w]fox\s/';
if (preg_match($pattern, 'The quick brown fox jumps over the lazy dog'))
{
echo "'fox' is present..."."\n";
}
else
echo "'fox' is not present..."."\n";
?>
Sample Output:
'fox' is present...
أسئلة مشابهة
القوائم الدراسية التي ينتمي لها السؤال