ResourceBundle::count
resourcebundle_count
(PHP >= 5.3.2, PECL intl >= 2.0.0)
ResourceBundle::count -- resourcebundle_count — Get number of elements in the bundle
Description
Object oriented style
public
int
ResourceBundle::count
( void
)
Procedural style
Get the number of elements in the bundle.
Return Values
Returns number of elements in the bundle.
Examples
Example #1 resourcebundle_count() example
<?php
$r = resourcebundle_create( 'es', "/usr/share/data/myapp");
echo resourcebundle_count($r);
?>
Example #2 OO example
<?php
$r = new ResourceBundle( 'es', "/usr/share/data/myapp");
echo $r->count();
?>
The above example will output:
42
- PHP Руководство
- Функции по категориям
- Индекс функций
- Справочник функций
- Поддержка языков и кодировок
- Internationalization Functions
- Функция ResourceBundle::count() - Get number of elements in the bundle
- Функция ResourceBundle::create() - Create a resource bundle
- Функция ResourceBundle::getErrorCode() - Get bundle's last error code.
- Функция ResourceBundle::getErrorMessage() - Get bundle's last error message.
- Функция ResourceBundle::get() - Get data from the bundle
- Функция ResourceBundle::getLocales() - Get supported locales
Коментарии
404 Not Found