Display massage in php

please click here for more wordpress cource

To display a message in PHP, you can use the echo statement. Here’s an example:

<?php
$message = "Hello, world!";
echo $message;
?>

In this example, the $message variable is assigned the value “Hello, world!”, and then it is displayed using the echo statement. When you run this code, the message “Hello, world!” will be displayed on the screen.

You can also use the print statement to display a message in PHP. Here’s an example:

<?php
$message = "Hello, world!";
print $message;
?>

This code does the same thing as the previous example, but it uses the print statement instead of echo. The result is the same – the message “Hello, world!” is displayed on the screen.

You may also like...

Popular Posts

Leave a Reply

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