Self-Test Questions in PHP Language For Beginners Part 15


1. How can you add your own error handler to PHP, and which four values will it be passed?
2. How can you disable (or turn off) your own error handler to restore PHP’s default error handling?
3. With which function can you search for occurrences of a search string in another string?
4. How must you format a search string?
5. How can you set a regular expression to match regardless of case?
6. With which function can you match all occurrences of a search string?
7. How many arguments must be passed to the preg_match() and preg_match_all() functions, and what are they?
8. How can you replace any matches with a replacement string as well as find out how many replacements were made?
9. What regular expression might you use to search for any occurrences of either car or automobile?
10. With what statement could you case-insensitively find all six-letter words (not merely sequences of six letters) in a string (hint: think about word boundaries)?

Self-Test Questions in PHP Language For Beginners Part 15

No comments:

Post a Comment