What is the functionality of the function strstr and stristr?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / umapathi
strstr-finds the first occurence of a string inside another
string (case-sensitive)
stristr-finds the first occurence of a string inside
another string (case-insensitive)
| Is This Answer Correct ? | 17 Yes | 3 No |
Do you know how to get the ip address of the client?
List some sorting functions in php?
What are the string function in php?
Why do we use javascript in php?
Explain the importance of the function htmlentities.
how can attached a file to a mail and attached a resume to a mail and received in id
What are the different methods of passing data or information between two calls of a web page? What are the advantages/disadvantages of these methods?
Tell me what does the php error 'parse error in php - unexpected t_variable at line x' means?
how to count how many sundays in month?
How cookies are trported from browsers to servers?
Which php framework is best?
Tell me what is the default session time in php?