Question:
$fio = "Иванов Иван Иванович";
Is there an algorithm for declining F.I.O. in PHP into genitive case?
Found algorithms for declension of full name, but not in the genitive case or not for PHP. Ideally, 2 different solutions are better (simpler and more difficult).
Answer:
I am also interested in this topic. copied the first code, added from the bottom:
$r = new NCLNameCaseRu();
$r->setLastName('Черепаншин');
$r->setFirstName('Рафаэль');
$r->setFatherName('Микельанжелович');
$r->setGender(1);
echo $r->getFormatted(2);
similarly: Cherepanshina Rafael Michelangelovich.