Home > PHP > PHP – Example 0001

PHP – Example 0001


First Example 0001

==================================================================================
<html>
<head>
<title>First Example</title>
</head>

<body>
php
// First Example
// ————————
echo “Hi all, welcome in the first PHP script”;
?>
</body>
</html>

==================================================================================

The row with
php
is the syntax to start the php script.

The rows that start with “//” are in PHP the comments like the following:
// First Example 0001
// —————————-

The row with “echo” sends to Web page the information inserted between the double apices (” … “)

The row with
?>
is the syntax to close the php script.

Advertisements
Categories: PHP
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: