Write a program to print “Hello PHP” using variable
Description:
Write a program to print “Hello PHP” using php variable?
Conditions:
- You can not use text directly in echo but can use variable.
View Solution/Program
<?php
$message = "Hello PHP";
echo $message;
?>
Tutorials Class - Output Window
Hello PHP
Learn more about the similar topics:
| Tutorials |
|---|
| PHP Variables |
| Interview Questions & Answers |
|---|
| How to check if a variable is empty in PHP? |
| Is PHP a case sensitive language? |
| What are the different data types in PHP? |