SproutCMS

This is the code documentation for the SproutCMS project

function numPlural()

Pluralises a number and word combination, e.g. [1, 'pig'] => '1 pig'; [0, 'pig'] => '0 pigs'

Usage

unknown Inflector::numPlural ( int $num , string $word );

Arguments

  1. int $num
    The number in question
  2. string $word
    The word to pluralise if $num is not 1