Question:-
What is the difference between echo and print?
Answer:-
Echo and Print both are used to output data on the screen/browser.
Difference: Echo has not return any value while print returns a value 1. Echo is faster than print. Echo can take multiple parameters while print can take a argument.
Ex.
1. echo "Hello";
output: Hello
2. print "Hello";
Output: Hello
Ex with multiple parameter:
1. echo "para one", " para two";
Output: para one para two
Prev Next
Rajesh Goswami
Skills Php
Qualifications :- High School - Town Hall public inter college, College/University - UPTU,Location :-dehradun,dehradun,uttarakhand,
Description:-
I am a php developer. I have 3+ years of experience in php, mysql. Mostly projects I have done in wordpress CMS. I also delivered projects in laravel as well.
My objective for future is to learn Python language.
skills: php, mysql, laravel, css(bootstrap), javascript(jquery),
Explore
Students (3)
Ask
shubham
Ask
Vikash
Ask
Anil
Recommended Classes
Anil Bist
I started my Professional Journey in 2006 with one of the Web Development Company in Bangalore an...
Professional
shweta Pandey
Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional
shweta Pandey
Passionate about LIFE and Learning. Lets explore together better version of "self", &qu...
Professional