GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Programming  >  PHP
Go To First  |  Previous Question  |  
 PHP  |  Question 74 of 74    Print  
Echo and Print
What is the difference between "echo" and "print" in PHP?


  
Total Answers and Comments: 2 Last Update: September 30, 2009     Asked by: stan555ley 
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: leena.sajnani
 
echo is a construct and print is a function

Above answer was rated as good by the following members:
Hardix
September 15, 2009 02:18:03   #1  
leena.sajnani Member Since: September 2009   Contribution: 1    

RE: Echo and Print
echo is a construct and print is a function
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
September 28, 2009 11:16:09   #2  
jitendra990 Member Since: May 2009   Contribution: 1    

RE: Echo and Print
echo is constructor and print is function.
echo cannot take arguments but print can take arguments.

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    

 Related Questions

If you have to work with dates in the following format: "Tuesday, February 14, 2006 @ 10:39 am", how can you convert them to another format, that is easier to use?
The strtotime function can convert a string to a timestamp.A timestamp can be converted to date format. So it is best to store the dates as timestamp in the database, and just output them in the format 
Read Answers (2) | Asked by : bicu

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

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

Hello All, Fatal error: Uncaught SoapFault exception: [soap:Client] Not enough message parts were received for the operation. in C:Program FilesEasyPHP 2.0b1wwwexamplessoaptest4.php:5 Stack trace: #0 C:Program 
Latest Answer : Dear$wsdl = “http://demo.mchek.com/mChekPaymentGateway/services/mChekPaymentGateway?wsdl”; $id = “16577″; $cliente = new SoapClient($wsdl); $vem = $cliente->__call(’checkStatus’,array($id)); print $vem; ?>Simple ...

What is the difference between "echo" and "print" in PHP? 
Latest Answer : echo is constructor and print is function.echo cannot take arguments but print can take arguments. ...


 Sponsored Links

 
Related Articles

Print Servers

Print Servers Print server is a server or advice that is used to connect many printers of a network to it Using the print server any computer on the network can give a print command to the server and the print server will get the job done accordingly Usually a print server is configured on a compute
 

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
 

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