Pluralize Word

Add a plural suffix to a word based on the given count.

Code

Utilities
$count . ' ' . $word . ($count === 1 ? '' : 's');

Parameters

Word to pluralize.

Count for pluralization.

Server

More PHP Snippets