S2:Function

A function is a block of code that are a lot like the code-block-type S1 variables, such as.

The S2 equivalent is.

A function is also called a method.

function Page::print { var string title = $this->title; """ """;   $this->print_head; $this->print_stylesheets; """ $title  """; $this->print_control_strip; $this->print_body; """ """;  server_sig; """  """; }