1--TEST--
2Transliterator::createFromRules (basic)
3--EXTENSIONS--
4intl
5--FILE--
6<?php
7ini_set("intl.error_level", E_WARNING);
8
9$rules = <<<RULES
10α <> y;
11\`\` } a > “;
12RULES;
13
14$t = Transliterator::createFromRules($rules);
15echo $t->id,"\n";
16
17echo $t->transliterate("``akk ``bkk ``aooy"),"\n";
18
19$u = transliterator_create_from_rules($rules, Transliterator::REVERSE);
20
21echo $u->transliterate("``akk ``bkk ``aooy"), "\n";
22
23echo "Done.\n";
24?>
25--EXPECT--
26RulesTransPHP
27“akk ``bkk “aooy
28``akk ``bkk ``aooα
29Done.
30