NameCaseLib/Tutorial/lesson5.2.php
2011-07-09 17:54:13 +03:00

21 lines
609 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
header('Content-type: text/html; charset=utf-8');
require '../Library/NCL.NameCase.ru.php';
$nc = new NCLNameCaseRu();
/**
* Пол можно не указывать
*/
echo $nc->qFatherName("Николаевич", NCL::$DATELN)."\n";
/**
* Если не указать падеж, получим массив со всеми падежами.
*/
print_r($nc->qFirstName("Андрей"));
/**
* В ситувациях, когда не возможно определить пол, его полезно указать.
*/
echo $nc->qSecondName("Касюк", NCL::$DATELN, NCL::$MAN)."\n";
?>