Thursday, July 1, 2010

echo("HELLO WORLD");


Information About echo()

This function outputs one or more strings.


Example 1 :



<?php
echo "Hello World";
?>





Example 2 :



<?php
echo "This text
spans multiple
lines.";
?>

Example 3 :

You can use Html tags in echo function. :)



<?php
$color = "red";
echo "Roses are $color";
echo "<br/>";
echo 'Roses are $color';
?>

No comments:

Post a Comment