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);
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.