functionality of strstr and stristr in php

It is for static page, dynamic page, website, SEO, performance and other web development discussion
denish
Posts: 32
Joined: Fri Sep 19, 2014 5:34 am
Contact:

functionality of strstr and stristr in php

Postby denish » Wed Oct 15, 2014 9:39 am

What is the functionality of the function strstr and stristr?


Guest

Re: functionality of strstr and stristr in php

Postby Guest » Sun Oct 19, 2014 9:42 am

strstr Returns part of string from the first occurrence of needle(sub string that we finding out ) to the end of string.
$email= 'sonialouder@gmail.com';
$domain = strstr($email, '@');
echo $domain; // prints @gmail.com
here @ is the needle
stristr is case-insensitive means able not able to diffrenciate between a and A


Return to “PHP, HTML, MYSQL and Web Hosting”

Who is online

Users browsing this forum: No registered users and 2 guests