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
Do I need apache for php?
How to get ip address of a server in php?
What is crypt () in php?
Is laravel an oop?
How can you create a session in php?
When is a conditional statement ended with endif?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?
Which methods should be used for sending an email using the variables $to, $subject, and $body?
What are the disadvantages of php?
What are the php variables?
How to remove duplicate values from array using php?
Can php run without server?
Can you convert php to html?
How to write in a file in php?
How big is varchar max?