Php related Interview questions and answers
Wednesday, 16 May 2012
what is strstr function does?
Ans: the strstr function is extract the datat which you want to search in the target string along with the rest data, if it will find.
exm: $tt= 'jafarkhanphp@gmail.com';
$domain = strstr($tt, '@');
echo $domain; // prints @gmail.com
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment