Skip to content

Instantly share code, notes, and snippets.

@j0k3r
Created June 23, 2011 13:22
Show Gist options
  • Save j0k3r/1042518 to your computer and use it in GitHub Desktop.
Save j0k3r/1042518 to your computer and use it in GitHub Desktop.
format_number_choice
<?php
echo format_number_choice(
'[0] aucun commentaire|[1] 1 commentaire|(1, +Inf] %1% commentaires',
array('%1%' => $nb_results),
$nb_results
)
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment