MCQs>IT & Programming>Regular Expressions With PHP Test>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?
Regular Expressions With PHP Test MCQs
Analyze the following code snippet that uses the preg_grep() PHP Regular Expression method: