php echo variable
snippet in php

How to show php text

user822

<?php
  echo "Hello World!";
// You can also do this with a variable:
$YourVariable = "Hello World!";
echo $YourVariable;
?>

php echo variable

user1932

<?php
  $name = "John Doe";
  echo "Hey $name!";
?>

print php variable with text

user1146

<?php
echo "<h2>PHP is Fun!</h2>";
echo "Hello world!<br>";
echo "I'm about to learn PHP!<br>";
echo "This ", "string ", "was ", "made ", "with multiple parameters.";
?> 

how to echo 2 variables in php

user8760


<?php
$str1="Hello world!";
$str2="What a nice day!";
echo $str1 . " " . $str2;
?> 
 

echo php

user6193

<?php 
$string = "Hello, World!";
echo $string;
?>

php variable in echo

user3722

echo 'Hello '.$variableName.'!';