Regular Expressions in PHP are case-sensitive.
- TRUE
- FALSE
The statement is true. Regular Expressions in PHP are case-sensitive by default. This means that when defining patterns or searching for matches, the case of the characters matters. For example, if a pattern specifies "abc", it will only match "abc" in the string and not "ABC" or "Abc". If case-insensitive matching is required, the appropriate modifier can be added to the Regular Expression pattern. Learn more: https://www.php.net/manual/en/reference.pcre.pattern.modifiers.php
Loading...
Related Quiz
- You have a PHP script and you need to get data sent in the URL's query string. How would you do this using the $_REQUEST superglobal?
- You should always close a file in PHP using the fclose() function after you're done with it.
- What are the differences between an interface and a class in PHP?
- In PHP, what is the difference between break and continue statements?
- Which of the following are common uses of indexed arrays in PHP?