-Echo
It is a command and cannot return values. Echo can be followed by multiple parameters separated by semicolons, for example:
Echo $ myvar1;
Echo 1, 2, $ myvar, "bold ";
-Print
Yes. One value can be returned and only one parameter is allowed.
-Printf
Function to format and output the text, for example:
$ Name = "hunte ";
$ Age = 25;
Printf ("my name is % s, age % d", $ name, $ age );
-Sprintf
Similar to printf, but not printed, the formatted text is returned. Others are the same as printf.
-Echo
It is a command and cannot return values. Echo can be followed by multiple parameters separated by semicolons, for example:
Echo $ myvar1;
Echo 1, 2, $ myvar, "bold ";
-Print
Yes. One value can be returned and only one parameter is allowed.
-Printf
Function to format and output the text, for example:
$ Name = "hunte ";
$ Age = 25;
Printf ("my name is % s, age % d", $ name, $ age );
-Sprintf
Similar to printf, but not printed, the formatted text is returned. Others are the same as printf.