The PHP Group PHP
Problem for The PHP Group PHP

Echo PHP




By mollE on Sep 08, 2008

" "
What is the difference between PHP echo and print?


Solution #1

posted on Nov 26, 2008
Not Rated)

xurizaemon

Rank: Guide 
Rating: 75%, 5 votes
Echo is marginally faster than print, and print returns a value, echo does not.

Echo allows comma separated arguments which it will concatenate. Print accepts only a single argument, but this is hardly a deal-breaker, because you can concatenate with a dot anyway.

Echo does not have a place in the precedence table, which means you can't use it in a complex expression.

That said ... for most cases, the major significant difference is:

Echo is quicker to type :)

Was this helpful?
Yes
No

Solution #2

posted on Sep 10, 2008
Not Rated)

Al42

Rank: Wiz 
Rating: 81%, 30 votes
Print outputs a single string, echo can output multiple strings. (It's in the help file.)
Was this helpful?
Yes
No

Popular Solutions for The PHP Group PHP


Questions and Unsolved Problems for The PHP Group PHP


Do you recommend The PHP Group PHP?
Answer

Answer
I ruined ccsearch.php can I get a new one ?

Answer
I want to execute java command for a software which is stored on my web server with the help of... (More)

Answer
subject avaluation system php w/ mysql codes how to evaluate subject using php w/ mysql

Answer
Hi there, I am using PHP5, where i need to mail with attachement. exact thing is, am getting the... (More)


Didn't find what you were looking for?

Describe your problem:

Select a Category:







Ask our Experts

 

Solve Your Problem Now!
Chat Live with an Expert
Chat Now
Browse popular Problems
More Common Problems
Most Common Problems for:
For The PHP Group PHP:

Top Programming Tool Experts

Rank: Guru Guru  

Solutions: 1400
Member Since: July 2009

Experience: I have owned a computer networking sales and service company.

Ask Me
Find more Programming Tool Experts

Top Computer & Laptop Repair

(513) 874-3306
We fix and repair laptop motherboard no video, no...
LaptopOnCall Inc.

(877) 729-0812
We connect to your computer over the Internet to...
Remote Repair


       
Solve Your Problem Now!
Chat Live with an Expert
Chat Now

X
Continue
When the original poster rates a solution that was given to his own problem, that rating is locked!
X

Are you sure the solution content is Inappropriate?
   
Tech buddies can communicate directly to answer questions. Become a Tech Buddy and have direct access to your favorite expert for FREE!
Insert Link
Insert Image
Insert You-Tube clip
Insert List
Insert List
Spell Check

What is this?



Select