crackyourinterview.com


To improves our performance please Like Share Subscribe(Will boost us)

What is main difference in between echo and print in PHP?
Question Posted on 09 May 2022Home >> 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";


.


Most Visited Questions:-

Deep Learning Questions Answers
Below are the different Deep Leaning Questions and answer a More...

Continuous Integration Questions Answers
Below are the 20 odd questions for CI or Continuous Integra More...

Derived relationships in Association Rule Mining are represented in the form of __________.
Derived relationships in Association Rule Mining are repres More...

What is Gulpjs and some multiple choice questions on Gulp
Gulpjs is an open source whihc helps in building Javascript More...

Microservices Architecture Questions Answers
Below are the different questions on Microservices Architec More...




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






@2014-2022 Crackyourinterview (All rights reserved)
Privacy Policy - Disclaimer - Sitemap