enchant_broker_describe 함수
(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0)
enchant_broker_describe — Enchant 제공자를 열거합니다.
설명
enchant_broker_describe(EnchantBroker $broker
): array
Enchant 제공자를 열거하고 이에 대한 기본적인 정보를 알려줍니다. 동일한 정보가 phpinfo()를 통해 제공됩니다.
매개변수
broker
- enchant_broker_init()에 의해 반환된 인챈트 브로커.
반환 값
세부 정보와 함께 사용 가능한 Enchant 제공자의 배열을 반환합니다.
변경 로그
버전 | 설명 |
---|---|
8.0.0 | broker 는 이제 EnchantBroker 인스턴스를 기대합니다. 이전에는 resource가 필요했습니다. |
8.0.0 | 이 버전 이전에는 함수가 실패 시 false 를 반환했습니다. |
Examples
예제 #1 주어진 브로커가 제공하는 백엔드 나열
<?php
$r = enchant_broker_init();
$bprovides = enchant_broker_describe($r);
echo "Current broker provides the following backend(s):\n";
print_r($bprovides);
?>
위의 예는 다음과 유사한 결과를 출력합니다.
Current broker provides the following backend(s): Array ( [0] => Array ( [name] => aspell [desc] => Aspell Provider [file] => /usr/lib/enchant/libenchant_aspell.so ) [1] => Array ( [name] => hspell [desc] => Hspell Provider [file] => /usr/lib/enchant/libenchant_hspell.so ) [2] => Array ( [name] => ispell [desc] => Ispell Provider [file] => /usr/lib/enchant/libenchant_ispell.so ) [3] => Array ( [name] => myspell [desc] => Myspell Provider [file] => /usr/lib/enchant/libenchant_myspell.so ) )