transliterator_transliterate_basic.phpt 545 B

1234567891011121314151617181920
  1. --TEST--
  2. Transliterator::transliterate (basic)
  3. --SKIPIF--
  4. <?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
  5. --FILE--
  6. <?php
  7. $t = transliterator_create("Latin; Title");
  8. $s = "Κοντογιαννάτος, Βασίλης";
  9. echo $t->transliterate($s),"\n";
  10. echo transliterator_transliterate($t, $s),"\n";
  11. echo $t->transliterate($s, 3),"\n";
  12. echo $t->transliterate($s, 3, 4),"\n";
  13. echo "Done.\n";
  14. --EXPECT--
  15. Kontogiannátos, Basílēs
  16. Kontogiannátos, Basílēs
  17. ΚονTogiannátos, Basílēs
  18. ΚονTογιαννάτος, Βασίλης
  19. Done.