What is difference between strstr() and stristr() in PHP?



What is difference between strstr() and stristr() in PHP?..

Answer / Bijendra Singh

In PHP, both strstr() and stristr() are functions used to search a substring within a given string. However, they differ in the way they handle case sensitivity. The strstr() function is case sensitive, while stristr() is case insensitive.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

Do you know what is the function mysql_pconnect() usefull for?

1 Answers  


In how many ways we can retrieve the date in the result set of mysql using PHP?

5 Answers   Yahoo,


Does php need apache?

1 Answers  


What is an anti csrf token?

1 Answers  


How failures in execution are handled with include() and require() functions?

1 Answers  


what is variable scope, which variables are accessible from where and what are "undefined variable" errors?

1 Answers  


Create a PHP web script with the following attributes: on start, three HTML form elements are shown: an string input field, a checkbox field, a dropdown/pull down list with 5 elements and a submit button. On submission, the form should be redisplayed (while remaining all options/inputs as the user has selected/entered them). Additionally, the selections/inputs of the user should be displayed in text. Please solve this without the use of any external libraries.

1 Answers   Wipro,


How to run the interactive php shell from the command line interface?

1 Answers  


How to find datatype of variable in php?

1 Answers  


What is composer phar?

1 Answers  


Do you have to initialize variables in php?

1 Answers  


What is trim codeigniter?

1 Answers  


Categories