Tuesday, December 15, 2015

Ways to display a value of a variable in PHP

This very short program that I wrote using PHP as my programming language will give you an idea how to display a value of a variable in different ways in PHP that I have learned during the course of my learning in PHP programming. I intended this one for beginners in PHP programming.

If you  have some questions please send me an email at jake.r.pomperada@gmail.com and jakerpomperada@yahoo.com

My mobile number here in the Philippines is 09173084360.
 
 
 
Sample Program Output



Program Listing
 
<?php
$name1 = "John Smith";
$name2 = "Anna Morgan";
$name3 = "Nadine Samonte";

echo "Hello ",$name1," How are you? <br>";

echo "Hello ".$name2."<br>";


echo "Hello $name3";




No comments:

Post a Comment