MCQs>IT & Programming>Regular Expressions With PHP Test>Analyze the following code that uses a PHP Regular Expression Character Set: < ?php $string = 'Welcome to the new era'; preg_match_all('/[h-b]/',$string,$matches); foreach($matches[0] as $value) {echo $value; } ?> What will be the output of the above code snippet?
Regular Expressions With PHP Test MCQs
Analyze the following code that uses a PHP Regular Expression Character Set:
<?php
$string = "Welcome to the new era";
preg_match_all("/[h-b]/",$string,$matches);
foreach($matches[0] as $value)
{
echo $value;
}
?>
What will be the output of the above code snippet?
Answer
Correct Answer: Compilation error will be displayed.
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Regular Expressions With PHP Test Skill Assessment