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 |
how can i upload only pdf files in my website? files has not a pdf extension mantioned
What is use of htmlspecialchars php?
Tell me is it possible to remove the html tags from data?
Tell me what is the difference between the functions strstr() and stristr()?
List the different types of print functions available in php?
Can we override static method in php?
What is an array in php?
What is PHP?
What is register_globals in php?
6 Answers Castling IT, HCL, Intel Soft Solutions, Millennium,
What is html used for?
What is the value for this auto incremented field user_pri_id?
What is variable give example?