Memory Refresh



String,  
Regexp

1) Which function is faster when searching substrings? <?php if (preg_match("/cde/", "abcde", $matches)) {} if (strpos("abcde", "cde")) {}




2) Find the errors. <?php if (preg_match("[a-zA-Z]", "John Smith") == FALSE) { // Invalid Name }






3) When using metacharacters, which of the following expresions returns 0?





0 / 0