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 php string function?
What is difference between session and cookies in php?
Is it possible to remove the html tags from data?
What is difference between strstr() and stristr()?
What are Routines?
Is null empty php?
What is the difference between Session and Cookie?
Explain about the connective abilities of the PHP?
Is php better than python?
How to execute a php script from the command line?
What is the use of $_server and $_env?
Explain the types of functions for Splitting String?
What is parent __construct ();?
What are php errors?
What is php and sql used for?