Register Now

Login

Lost Password

Enter your email to reset your password.

PHP Syntax starts with <?php and end with ?>

<?php
//PHP CODE
?>

A PHP file can contains HTML tags and some PHP codes. PHP scripts get executed on the server and its result is shown on the browser.

To display the output on the screen in PHP, you have to use a built-in function named “echo” to produce output.

For example –

<!DOCTYPE html>
<html>
<head>
<title>PHP Syntax</title>
</head>
<body>
<?php
echo "Welcome to Share Query";
?>
</body>
</html>