Correct Answer: ~
Explanation:
Note: This Question is unanswered, help us to find answer for this one
Regular Expressions With PHP Test Skill Assessment
Your Skill Level: Poor
Retake Quizzes to improve it
More Regular Expressions With PHP Test MCQ Questions
Analyze the following code snippet that uses the preg_grep() PHP Regular Expression method: < ?php $names = array('Andrew','John','Peter','Nastin','Bill'); $output = preg_grep('/^[a-m]/i', $names); print_r( $output ); ?> What will be the output of the above code?
Which of the following PHP Regular Expression modifiers is used to put the Regex on multiple lines while at the same time allowing comments within the Regular Expression itself?
Analyze the following code that uses the ? < = PHP Regular Expression modifier: < ?php $string = 'I live in the whitehouse'; if(preg_match('/(? What will be the output of the above code snippet?
Analyze the following code: < ?php $string = 'This is a [templateVar]'; preg_match_all('/[\[\]]/', $string, $matches); foreach($matches[0] as $value) {echo $value;} ?> What will be the output of the above code snippet?
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?
Which of the following PHP Regular Expression modifiers is used to find a pattern at the end of a string?
Analyze the following code that uses a PHP Regular Expression Character Set: < ?php $string = 'Is this all there is?'; echo(preg_match('/[^A-J]/',$string,$matches)); ?> What will be the output of the above code snippet?
Analyze the following code snippet that uses the preg_match() PHP Regular Expression method: < ?php $string = 'ball'; echo preg_match('/b[aoiu]l/', $string, $matches); ?> What will be the output of the above code?