Inflect placeholders in a string in the singular if a count is 1, or in
the plural otherwise
For example:
<?php
$message = Inflect::format($count, '{{#}} {{#:entry}} {{#:was}} processed');
The following words are recognised:
-
#
(unconditionally replaced with a number)
-
no
(replaced with a number if $count
is not 0
)
-
a
, an
(replaced with a number if $count
is plural, no
if
$count
is 0
)
-
are
/ is
(inflected)
-
has
/ have
(inflected)
-
was
/ were
(inflected)
Other words are inflected by {@see Inflect::plural()} if $count
is a
value other than 1
, or used without inflection otherwise.
The plural form of a word can be given explicitly using the following
syntax:
<?php
'{{#:matrix:matrices}}';