Practicing for Preg Basics of Web Design & Development

Questions 1 of 10
  • Q. What will be the output of the following PHP code?

    $number = array(0,1,two,three,four,5);
    $num = preg_grep("/[0-5]/", $number);
    print_r($num);