Echo and print statements are used to bring the result on the screen of a given string (a viariable, a function, etc...).

Both, echo and print, are not much different in the technique of use and the only difference is the speed. Echo has slightly faster execution speed than print statement. and that is because echo does not have a return value unlike a print statement. The print statement on the other hand has a one return value. Echo can take multiple parameters while print can take only one argument at a time.

Echo and print statements

Figure: Example of the echo and print statements


›› go to examples ››