What is the functionality of the function strstr and stristr?
Answer Posted / arvind pippal(delhi)
strstr() function is used to return the sub string from
first occurrence of string point from the string base.If
string point is not found, returns FALSE. syntax: strstr
(string base,string point)
examle: <?php
$email = 'arvindpippal@gmail.com';
$domain = strstr($email, '@');
echo $domain;
?>
output: @gmail.com
stristr() does the same thing in Case-insensitive manner
| Is This Answer Correct ? | 23 Yes | 3 No |
Post New Answer View All Answers
What is session in c#?
What is the best website to learn php?
What is the array in php?
How can I use single quotes in single quotes in php?
Is php better than python?
What is difference between base_url and site_url?
What is the phpstorm?
What is polymorphism?
How to test if a variable is an array?
What advance thing in php7?
What is the best way to test the strpos() return value in php?
How are sessions maintained?
Explain php explode() function.
How do you put a space in html?
What is php full form?