Resolved Question
what is the difference between str & stristr
 
Details:
  asked by: vertexdisk  on: May 22, 2009  
 Best Answer ! ! !
entity 's Answer  ( this answer is maked as best answer of this question at: May 26, 2009 )


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
1 comments  answered on: May 27, 2009 
Other Answer (1)
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

Hot Questions

Contact Us - IT-Interview