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 framework in php for beginners?
What does PEAR stands for?
How do I use isdigit function?
How do I know my xampp version?
How does php session work?
What is php destruct?
Explain why would we use === instead of ==?
How to fix "headers already sent" error in php
When are you supposed to use endif to end the conditional statement?
How to convert the first character to upper case?
How can you propagate a session id?
What is the meaning of a final class and a final method?
How to create a mysql connection?
Explain how we can retrieve the data in the result set of mysql using php?
What is die in php?