<SCRIPT LANGUAGE='PHP'> </SCRIPT> <% %> [enabled asp_tags php.ini setting] <?php ?> [This is standard Tags] <? ?> [enabled short_open_tag php.ini setting]
Echo and print: In PHP there are two basic ways to get output: echo and print. echo and print are more or less the same. They are both used to output data to the screen. echo and print is not actually a function (it is a language construct), echo can take multiple parameters (although such usage is rare) while print can take one argument. echo is marginally faster than print.
<?php echo "This ", "string ", "was ", "made ", "with multiple parameters."; ?>
<?php print "I'm about to learn PHP!"; ?>
Advertisements