Mega Code Archive

 
Categories / Php / Functions
 

Declaring a Function That Requires Arguments

<html> <head> <title>Declaring a Function That Requires Arguments</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>