Discussion Forum | Board Infinity

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

What is the difference between “echo” and “print” in PHP?

2 Likes

Both of these are used to print the data in the screen. The few differences are - echo has no return value whereas print has a return value of 1. echo can take multiple parameters whereas print can take only one parameter.