codingtcher.com
Theme Night
Home
Login

Php Echo & Print

Home » Php » Php Echo & Print

php echo

<?php
   session_start();
   if (isset($_SESSION['school']) && isset($_SESSION['course']))
      echo "<p> Your choice is " .  $_SESSION['course'] . 
           " in ". $_SESSION['school'] . ". </p>";
 ?>

PHP echo example

<?php
echo "Hello Softhunt Community";
?>

php echo

<?php
   $motto = " my first book   ";
   $newMotto = str_replace("first", "best", $motto);
   $newMotto = trim($newMotto);
   echo "<p> $motto </p>";
   echo "<p> $newMotto </p>"; 
   echo substr($newMotto, -4);
 ?>

php echo statement

echo "hello"

Php Related Post