How to Print a Statement in php

How to Print a Statement in php

You can use following code to print any statement in php.

Start your Php Code using –

<?php

//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.

<?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.

Social Share

Leave a Reply

Your email address will not be published. Required fields are marked *