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 |
What are the advantages of triggers?
What is an array in php?
Explain Type hinting in PHP?
Who is the father or inventor of php?
How does the identity operator ===compare two values in PHP?
how many type of url?
Which php mvc framework is best?
How will you sened requests from server1 to server2 from server2 to server3 and so on .. w/o letting the output come to the browser or say the client end in php
What are the advantages of triggers in php?
What are sql injections, how do you prevent them and what are the best practices?
What is the difference between nowdoc and heredoc?
Can php run without server?