![]() |
IT-Interview.com:Open Database for IT Professionals to share interview questions, answers and knowledge. |
![]() |
IT-Interview.com:Open Database for IT Professionals to share interview questions, answers and knowledge. |
Best Answer ! ! !
hai, i think the question is wrong.The correct question should be what is the difference between strstr & stristr. strstr: the syntax is: string strstr(string $string,string $str ); the function strstr will search $str in $string.if it finds the string means it will return string from where it finds the $str upto end of $string; example: $string="http://yahoomail.com"$str="yahoomail";the output is :yahoomail.com;the main difference between strstr and stristr is former consider the case difference and later ignore the case difference
strstr($needle $string) function will search $needle in $string if its found then it will return the rest of string after that needle. like strstr(@ br.rizwan@gmail.com) will return gmail.com only....Ans stristr is case insensitive..Rest of functionality work as strstr..
cesario answered on£ºMay 23, 2009 0 comments