GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  PHP
Go To First  |  Previous Question  |  Next Question 
 PHP  |  Question 26 of 74    Print  
what is the difference between str & stristr

  
Total Answers and Comments: 2 Last Update: February 06, 2007     Asked by: kinnari mishra 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: Balakrishnan
 
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

Above answer was rated as good by the following members:
imran7000
November 29, 2006 05:37:36   #1  
Balakrishnan        

RE: what is the difference between str & stristr
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
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
February 06, 2007 16:16:11   #2  
Rizwan        

RE: what is the difference between str & stristr
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..
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

What is difference between require_once(), require(), include().Becouse above three function usely use to call a file in another file.

Latest Answer : Both echo and print are language constructs.  However print() acts like a function in that it returns a value and can be used in complex expressions.Furthermore, echo without parentheses can take multiple arguments.  Echo with parentheses and ...
Read Answers (7) | Asked by : Davinder Singh

What is difference between mysql_fetch_array(),mysql_fetch_row() and mysql_fetch_object()please insert with example

Latest Answer : Move :   This function checks to ensure that the file designated by filename is a valid upload file (meaning that it was uploaded via PHP's HTTP POST upload mechanism). If the file is valid, it will be moved to the filename given by destination. ...
Read Answers (1) | Asked by : Lokesh M

If anyboyd knows, do tell me.waiting for your prompt response. 
Latest Answer : You are unlikely to ever want to know this, however the difference is that print will return a value to let you know if the statement worked or not, whereas trying the same thing with echo will result in error:
Read Answers (19) | Asked by : Ashwani

The require() statement includes and evaluates the specific file. The include() statement includes and evaluates the specified file include() produces a Warning while require() results in a Fatal Error. 
Latest Answer : include() gives an warning but reqiure() gives an error.require halts the page but include dosen't. ...
Read Answers (3) | Asked by : Rasmi ranjan sahoo

Split - Splits string into array by regular expression.Explode - Split a string by stringHope this helps 
Latest Answer : In Split You can use regular Expression like split('[/.-]', $string); ...
Read Answers (3) | Asked by : Paddy

Latest Answer : 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 ...
Read Answers (2) | Asked by : kinnari mishra

Latest Answer : Both the functions are used to Split a string. However, Split is used to split a string using a regular expression. On the other hand, Explode is used to split a string using another string. e.g explode (" this", "this is a string"); ...
Read Answers (2) | Asked by : What is difference between Split and Explode

Latest Answer : $$message  - this is called as variables variablesee...$message = "Welcome";$$message = "World";Now we can echo above strings likeecho $message.$welcome;This weill print we "WelcomeWorld"Note : variable's value can ...
Read Answers (7) | Asked by : trivendra singh


 Sponsored Links

 
Related Articles

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school’s al
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Programming Languages Certification

IT Certification programs have several options that will offer you the best knowledge.  By learning everything that you need to know about information technology you will be able to open new doors to your career and personal business desires.  IT Certification offers several vari
 

Neuro-linguistic Programming Methods

Neuro linguistic Programming Methods There are several methods used for performing Neuro linguistic Programming on an individual for obtaining insights into the psyche of the person in order to correct to modify certain patterns of behavior These techniques are also used for Neuro linguistic trainin
 

Importance of Proper English during Job Interview

Importance of Proper English during Job Interview Your job interview is crucially important and it will determine whether or not you will get the job Depending on the type of job you re going for it is very important for you to use proper English In most cases jobs which offer higher salaries will h
 

The Difficult Past of Neuro-linguistic programming

The Difficult Past of Neuro linguistic programming Neuro linguistic programming has had a rocky past with a number of lawsuits rivalry unsystematic development and intermittent progress During the 1980s the two founders separated after the lawsuit filed by Bandler Bandler went on to file several law
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape