Created
January 7, 2011 14:17
-
-
Save farico/769495 to your computer and use it in GitHub Desktop.
komentarai
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function linksnis($skaicius, $komentaras, $komentarai, $komentaru) { | |
if ( $skaicius % 10 == 0 || between(substr($skaicius, -2), 10, 20) ) { | |
return $komentaru; | |
} | |
elseif ( substr($skaicius, -1) == 1 && $skaicius != 11 ) { | |
return $komentaras; | |
} | |
return $komentarai; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment