Algorithm


We can use several ways to do that -

  1. echo
  2. print
  3. print()
  4. print_r()
echo "String or Anything"
print "String"

 

Code Examples

#1 Code Example with PHP Programming

Code - PHP Programming


<?php
echo "Hello World";

print "Hello World !";

printf("Hello World !");

print_r("Hello World !");

?>
Copy The Code & Try With Live Editor

Output

x
+
cmd
Hello World
Hello World
Hello World
Hello World
Advertisements

Demonstration


PHP - Hello World Print

Next
PHP Simple Summation, Subtraction, Multiplication, Division Example in PHP