(PHP >= 5.3.2, PECL intl >= 2.0.0)
Get number of elements in the bundle
public int ResourceBundle::count ( void )
Object oriented style
Procedural style
Get the number of elements in the bundle.
Parameters:
r
ResourceBundle object.
Returns:
Returns number of elements in the bundle.
Examples:
resourcebundle_count() example
<?php $r = resourcebundle_create( 'es', "/usr/share/data/myapp"); echo resourcebundle_count($r); ?>
OO example
<?php $r = new ResourceBundle( 'es', "/usr/share/data/myapp"); echo $r->count(); ?>
The above example will output:
42
See also:
Please login to continue.