Write a Hello world program using variable?
Page 1 of 1
Write a Hello world program using variable?
To write the hello world program in PHP using variable you need to know the tags that are used in HTML and the PHP coding which is as follows:
<html>
<head><title>Hello World Script using Variable</title></head>
<body>
<?php
$salutation = “Hello World!”;
echo “<p>$salutation</p>”;
?>
</body>
</html>
Similar topics
» Write a program to show the joining of two strings in PHP?
» You want to link a C++ program to C functions. How would you do it?
» What is reference variable in C++?
» Write the statements that are used to connect PHP with MySQL
» How to use HTTP Headers inside PHP? Write the statement through which it can be added?
» You want to link a C++ program to C functions. How would you do it?
» What is reference variable in C++?
» Write the statements that are used to connect PHP with MySQL
» How to use HTTP Headers inside PHP? Write the statement through which it can be added?
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum