Declaring a Function That Requires Arguments : Parameters « Functions « PHP
- PHP
- Functions
- Parameters
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>
Related examples in the same category