Sail E0 Webinar
Question
What will be the output if we replace the line $num = preg_grep(“/[0-5]/”, $number); with $num = preg_grep(“/[0-5]/”, $number, PREG_GREP_INVERT);?
Options:
A .  Array([2]=>two [3]=>three [4]=>four)
B .  Array([1]=> 1)
C .  Array([0]=>0 [5]=>5)
D .  Array([0]=>0 [1]=>1 [2]=>two [3]=>three [4]=>four [5]=>5)
Answer: Option A

Submit Your Solution Below and Earn Points !
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers