In PHP echo and print keyword is used to print the statement
Difference between echo and print in PHP
echo is a statement i.e used to display the outpue. It can be used with parentheses echo() or without parentheses but within double quote or single qoute like echo ""; or echo '';. After Completed of statement it must be terminated with semicolun (;).
echo is faster then print keyword.
Using echo can pass multiple string seperated as (,).
echo doesn't return any value.
/* it is eample of syntax of php to start php code you must start with (< ?php), and end with(? >) and inside the php code block you can not write HTML code, to write html code you have to end PHP script.*/
<?php $name = 'AJAY';
echo $name;
//or
echo ($name);
?>
// output will be AJAY.
Pass multiple strings
/* it is eample of syntax of php to start php code you must start with (< ?php), and end with(? >) and inside the php code block you can not write HTML code, to write html code you have to end PHP script.*/