ResourceBundle::count
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 2.0.0)
Get number of elements in the bundle
Description
Oop
ResourceBundle::count(): int
Procedural
resourcebundle_count(ResourceBundle $bundle): int
Get the number of elements in the bundle.
Parameters
bundleResourceBundleobject.
Return Values
Returns number of elements in the bundle.
Examples
resourcebundle_count() example
php
<?php
$r = resourcebundle_create( 'es', "/usr/share/data/myapp");
echo resourcebundle_count($r);
?>OO example
php
<?php
$r = new ResourceBundle( 'es', "/usr/share/data/myapp");
echo $r->count();
?>The above example will output:
output
42