Write a PHP script to check whether a string contains a specific string?
- برمجة بي اتش بي
- 2021-09-10
- mhanasmh00489829403
الأجوبة
<?php
$str1 = 'The quick brown fox jumps over the lazy dog.';
if (strpos($str1,'jumps') !== false)
{
echo 'The specific word is present.';
}
else
{
echo 'The specific word is not present.';
}
?>
Sample Output:
The specific word is present.
القوائم الدراسية التي ينتمي لها السؤال