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 steps involved to run php?
what is the importence of session.save_path in Php.ini file and wht changes u've to made before using sesssions in ur php program first time?
Explain me what are the 3 scope levels available in php and how would you define them?
What is variable give example?
How to split a string into array using php?
What is include in php?
how to run PHP in command line?
8 Answers InfoShore, Ramp Green, Xtreeme,
Difference between notify url, return url in paypal payment gateway?
4 Answers A1 Technology, Capital IQ, CMS, Essar, HCL, IAS, Karvy, L&T, State Bank Of India SBI, TATA, Tisco, WNS,
How data or variable can be receive or send from PHP to HTML page??
What is the use of callback in php?
Which cryptographic functions in php returns the longest hash value?
Can we learn php without html?