A Function Requiring Two Arguments
<html>
<head><title></title></head>
<body>
<?php
function headingWrap( $txt, $size ) {
print "<h$size>$txt</h$size>";
}
headingWrap("A", 1);
headingWrap("B",2);
headingWrap("C",3);
?>
</body>
</html>
Related examples in the same category