1 Answer - Sort by: Date | Rating
print and echo are commands used to show the message on the computer screen. These both commands perform same function i.e. Display the output. E.g
Code:
<. ?. Php
print "Hi how are you!";
echo " Hi how are you!";
?>
Output :
Hi how are you!
Hi how are you!
The above example displays the same result on the screen. But there is small difference between these two commands and it all depends upon their and outcome usage. The print command can return a true/false value while echo command can not. Print command can be helpful in some type of script execution. Echo command is considered much faster executed command than the print command.
Code:
<. ?. Php
print "Hi how are you!";
echo " Hi how are you!";
?>
Output :
Hi how are you!
Hi how are you!
The above example displays the same result on the screen. But there is small difference between these two commands and it all depends upon their and outcome usage. The print command can return a true/false value while echo command can not. Print command can be helpful in some type of script execution. Echo command is considered much faster executed command than the print command.
0
0
- What Is Integrity Constraints?
- What Are The Risks Using Database?
- Write A Program To Display A String With An Embedded Quote:"Sachin Has Played A Game Of His Life"?
- Can Anyone Give Me The Code In C++ For Reversing A Linked Circular Queue Using Pointers?
- Create A Class Time And Its Data Members Are Hours,mins And Secs And Operator Overload +,-,==,!,>,?
- Write A Program In C To Find The Area Of Rectangle, Area Of Circle, Area Of Cube Using Overloading Function?
- How To Create Algorithm And Flowchart Of Fibonacci Series?
- What Is A Referential Anomaly?
- Why Java Is Popular In Market?
- What Is Plateform?
- What Does The Following Coe Print. Systemout.println("*")?
- How To Create A Java Program That Accepts 3 Numbers (num1, Num2, Num3) And Sort Them In Ascending And Descending Order?
- Who Is Dummy?
- What Are 3 Types Of Flow?
- What Is The Difference Between Declaring Pointer As Int And Char?
- How Do You Make A Spongebob With Regular String?
- What Are The Advantages And Disadvantages Of Representing Between Variable In A Table?
- When Did Uganda Get Its Independence?
- Explain Any Two Advantages Of A Database Systems?
- Explain File Management Systems Using File-based Approach?
- Do You Need Any Qualifications To Be A Model?
- How To Draw Flow Chart To Check Whether Given String Is Palindrome Or Not?
- What Are Different Versions Of Html?
- In An Array Declaration,this Indicates The Number Of Elements That The Array Will Have?
- What Is Needed To Run A PHP Script?
- What Is The Difference Between Print() And Echo() In Php?
- What's The Difference Between Print And Electronic Media?
- What Is The Difference Between Print And Println In Java?
- What Is The Difference Between Monitor And Print Resolution Sizes?
- What Are The Commands Which Are All Used In Ms-dos?
- What Other Commands On The Computer That I Need To Know?
- What Commands To Use With The Network?
- What Are The Sql Commands?
- What Is The Difference Between System.out.println And System.out.print In Java?
- How Many Types Of Commands Are There In DOS?
- What Are AT Commands And What Are Functions That Can Be Performed By Using These Commands?
- What Are Dml Commands And How They Work?

New Comment - Comments are editable for 5 min.