MCQs > IT & Programming > Regular Expressions With PHP Test > Analyze the following code that uses the {x} PHP Regular Expression modifier: < ?php $string = '10 or 100 or 1000?'; preg_match_all('/\d{2}/', $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 the {x} PHP Regular Expression modifier:

<?php
$string = "10 or 100 or 1000?";
preg_match_all("/\d{2}/", $string,$matches);
foreach($matches[0] as $value)
        {
        echo $value;
        }
?>

What will be the output of the above code snippet?


Answer

Correct Answer: 10101000

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Regular Expressions With PHP Test Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

More Regular Expressions With PHP Test MCQ Questions

search

Regular Expressions With PHP Test Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it