Strings & Regular Expressions Questions And Answers
Here you can find Strings & Regular Expressions Questions and Answers.
Why Strings & Regular Expressions Questions and Answers Required?
In this Strings & Regular Expressions Questions and Answers section you can learn and practice Strings & Regular Expressions Questions and Answers to improve your skills in order to face technical
inerview conducted by organisations. By Practicing these interview questions, you can easily crack any Exams interview.
Where can I get Strings & Regular Expressions Questions and Answers?
AllIndiaExams provides you lots Strings & Regular Expressions Questions and Answers with proper explanation. Fully solved examples with detailed answer description. All students, freshers can download
Strings & Regular Expressions Questions and Answers as PDF files and eBooks.
How to solve these Strings & Regular Expressions Questions and Answers?
You no need to worry, we have given lots of Strings & Regular Expressions Questions and Answers and also we have provided lots of FAQ's to quickly answer the questions in the Competitive Exams
interview.
Strings & Regular Expressions Questions and Answers
1. How many functions does PHP offer for searching and modifying strings using Perl-compatible regular expressions.
Strings & Regular Expressions Questions and Answers
2. Say we have two compare two strings which of the following function/functions can you use?
(i) strcmp()
(ii) strcasecmp()
(iii) strspn()
(iv) strcspn()
Strings & Regular Expressions Questions and Answers
3. Which one of the following functions will convert a string to all uppercase?
Strings & Regular Expressions Questions and Answers
4. What will be the output of the following PHP code?
< ?php
$title = "O'malley wins the heavyweight championship!";
echo ucwords($title);
?>
Strings & Regular Expressions Questions and Answers
5. What will be the output of the following PHP code?
< ?php
echo str_pad("Salad", 5)." is good.";
?>
Strings & Regular Expressions Questions and Answers
6. Which one of the following functions can be used to concatenate array elements to form a single delimited string?
Strings & Regular Expressions Questions and Answers
7. Which one of the following functions finds the last occurrence of a string, returning its numerical position?
Strings & Regular Expressions Questions and Answers
8. What will be the output of the following PHP code?
< ?php
$url = "nachiketh@example.com";
echo ltrim(strstr($url, "@"),"@");
?>
Strings & Regular Expressions Questions and Answers
9. PHP has long supported two regular expression implementations known as ___ and ___.
(i) Perl
(ii) PEAR
(iii) Pearl
(iv) POSIX
Strings & Regular Expressions Questions and Answers
10. Which one of the following regular expression matches any string containing zero or one p?