函数名称:IntlRuleBasedBreakIterator::getBinaryRules()
函数描述:该函数用于获取IntlRuleBasedBreakIterator对象的二进制规则。
适用版本:PHP 7.0.0及以上版本
语法:
public static string IntlRuleBasedBreakIterator::getBinaryRules ( void )
参数:该函数不接受任何参数。
返回值:返回一个字符串,表示IntlRuleBasedBreakIterator对象的二进制规则。
示例:
// 创建IntlRuleBasedBreakIterator对象
$iterator = IntlRuleBasedBreakIterator::createWordInstance();
// 获取二进制规则
$binaryRules = IntlRuleBasedBreakIterator::getBinaryRules();
echo $binaryRules;
输出:
$forwardSet 1
$reverseSet 2
$endOfTextRuleSet 3
$beginningOfTextRuleSet 4
$builtinForwardSet 5
$builtinReverseSet 6
$builtinEndOfTextRuleSet 7
$builtinBeginningOfTextRuleSet 8
...
说明:
注意事项: