Return to Snippet

Revision: 10794
at January 13, 2009 18:03 by Tate


Initial Code
function Pluralize($number, $plural, $singular) {
	if ($number == 1) {
		return $singular;
	} else {
		return $plural;
	}
}

Initial URL

                                

Initial Description

                                

Initial Title
Pluralize Function to change wording based on the number of results (0,1,or more)

Initial Tags

                                

Initial Language
PHP