Second sample :
save file as my001.php in any of your web server(ensures that web server supports php files).
and run from web browser as
www.yoursite.com/my001.php
Sample Webpage 2:
<? php
$a=10;
$b=5;
$c = $a + $b;
echo '<h2> '.$c.'</h2>';
?>
Output:
It shows :
15
Here
1.
echo is used to
print.
2. all the variable name should starts with
$
3. second character should be a character or _
4. subsequents may be combinations of character , _ , numerals.
5. Other special character are not allowed.
6. Dot(.) is string concatenation operator.
Any related things may be posted in this as reply, are welcome.
Regards,
smartgk
