Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is session in c#?

1033


How to convert strings to numbers in php?

1186


How to connect to a url in php?

1042


What enctype is required for file uploads to work?

1086


What does $_cookie means?

1033


How do I check if a given variable is empty?

1001


How to take a substring from a given string in php?

958


How do I run a php script in windows?

1085


Is it more secure to use cookies to trfer session ids?

1054


What is meant by an associative array?

1042


Explain me difference between mysql_connect and mysql_pconnect?

1004


What is urlencode and urldecode in php?

1186


Why delimiter is used in mysql?

1114


How to read the entire file into a single string?

1042


Can we run php on tomcat server?

1110