MCQs>IT & Programming>Regular Expressions With PHP Test>Analyze the following code: < ?php $string = 'The Lord is the God'; if(preg_match('/the+(?!is)/i', $string,$match)) {print_r($match);} else {echo 'No match found';} ?> What will be the output of the above code snippet?
Regular Expressions With PHP Test MCQs
Analyze the following code:
<?php
$string = 'The Lord is the God';
if(preg_match("/the+(?!is)/i", $string,$match))
{
print_r($match);
}
else
{
echo 'No match found';
}
?>
What will be the output of the above code snippet?
Answer
Correct Answer: Array ( [0] => The )
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Regular Expressions With PHP Test Skill Assessment