PHP: Declare Function With Arguments

Start PHP Code RESULT
This is a line
This is a new line
This is yet another line
End PHP Code RESULT

 

The PHP Code START
<?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");
?>
The PHP Code END

Back to Bill's PHP