Tuesday, May 25, 2010

To Display contents

One:(Using echo)


<?php

echo "This is sample";

?>

Two:(concatenation of 2 strings)


<?php

echo "<b>Hello</b>"." This is sample";

?>


Three : (Using print)


<?php

$var1="Hello...Howdy?";

print($var1);

?>


Note:

We can use html tags ,inside of "".

No comments:

Post a Comment