enchant_broker_dict_exists

(PHP 5 >= 5.3.0, PHP 7, PHP 8, PECL enchant >= 0.1.0 )

enchant_broker_dict_existsVerifica si un diccionario existe

Descripción

enchant_broker_dict_exists(EnchantBroker $broker, string $tag): bool

Verifica si un diccionario existe.

Parámetros

broker

An Enchant broker returned by enchant_broker_init().

tag

lenguaje, en un formato como us_US, ch_DE, etc.

Valores devueltos

Devuelve true si el lenguaje existe, false en caso contrario.

Historial de cambios

Versión Descripción
8.0.0 broker expects an EnchantBroker instance now; previoulsy, a recurso was expected.

Ejemplos

Ejemplo #1 Ejemplo con enchant_broker_dict_exists()

<?php
$tag
= 'en_US';
$r = enchant_broker_init();
if (
enchant_broker_dict_exists($r,$tag)) {
echo
$tag . " dictionary found.\n";
}
?>

Ver también

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top