Tuesday, 20 March 2012

FUNCTION

<html>
 <head>
 <title>Listing 6.3</title>
 </head>
 <body>
 <?php
 function printBR( $txt )
 {
 print ("$txt<br>\n");
 }
 printBR("This is a line");
 printBR("This is a new line");
 printBR("This is yet another line");
 ?>
 </body>
 </html>

OUTPUT
This is a line
This is a new line
This is yet another line

No comments:

Post a Comment