You can use following code to print any statement in php.
Start your Php Code using –
//end it using –
Any php function, statement, declaration etc goes between the starting and ending tags.
Lets Print – “Hello World” in your browser using php.
echo “Hello World”;
// echo is used to print any statement or value in php.
Copy and paste the code in your .php file to run.