Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


What is main difference in between echo and print in PHP?
Question Posted on 09 May 2022

Home >> PHP >> PHP Questions >> What is main difference in between echo and print in PHP?




What is main difference in between echo and print in PHP?
Both print and echo are use to print output in browser and below is the three main difference in between these two:-
0
0

Base of Differenceechoprint
BasicWhen we use echo in PHP this will not return any value after printing the output.When we use print in php this will return boolean value after printing the output.
Speedecho is faster then print in PHP.print method is slwer then echo as this need to return values.
Sample Codeecho "Welcome to PHP";$a = print "welcome developer";


 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
difference between echo and print
method to past value from one page to another in php
differenc between mysql_connect and mysql_pconnect
What is htaccess file
Code to combine or concatenate two variables in php






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |