Showing posts with label sample example in php. Show all posts
Showing posts with label sample example in php. Show all posts

Saturday, 29 June 2013

Simple examples in php

<html>
<head><title>example</title>
</head>
<body>
<?php
echo "<b><h1>welcome to bnr</h1></b><br/>";

$a="<h2>welcome to bnr</h2>";
echo $a;
print "<br/>";
$b=2;
echo $b;
echo "<br/>";
print "<br/>";
$c="Welcome";
$d="To";
$e="BNR";
echo $c." ".$d." ".$e;
?>
</body>
</html>

Friday, 28 June 2013

Print sample Message In PHP

<html>
<head><title>Print Message In PHP</title>
</head>
<body>
<?php
echo "Welcome To PHP<br/>";
echo "Display sample message";
?>
</body>
</html>

/*
Out Put:

Welcome To PHP
Display sample message
*/