I hesitate between using the name of the current setter versus using a common name (such as $value) for all setters.
// Style 1
function set_section($section);
// Style 2
function set_section($value);
I hesitate between using the name of the current setter versus using a common name (such as $value) for all setters.
// Style 1
function set_section($section);
// Style 2
function set_section($value);
I'd go with value
since it's the same name that is being used in .NET.
Name it what the parameter value represents. If it’s a section name, use name or section name; if it’s a section number, use number or section number; if it’s some kind of section itself, call it section.