mirror of
https://github.com/php/php-src.git
synced 2025-01-07 03:13:33 +08:00
e283f7a7fe
- Changes request #52986 to "to be documented".
22 lines
404 B
PHP
22 lines
404 B
PHP
--TEST--
|
|
Transliterator - "id" property
|
|
--SKIPIF--
|
|
<?php if( !extension_loaded( 'intl' ) ) print 'skip'; ?>
|
|
--FILE--
|
|
<?php
|
|
$tr = Transliterator::create("Katakana-Latin");
|
|
echo $tr->id, "\n";
|
|
$revtr = $tr->createInverse();
|
|
echo $revtr->id, "\n";
|
|
var_dump($revtr);
|
|
|
|
echo "Done.\n";
|
|
--EXPECTF--
|
|
Katakana-Latin
|
|
Latin-Katakana
|
|
object(Transliterator)#%d (%d) {
|
|
["id"]=>
|
|
string(%d) "Latin-Katakana"
|
|
}
|
|
Done.
|