RESOURCEBUNDLE_COUNT(3) 1 RESOURCEBUNDLE_COUNT(3)
ResourceBundle::count - Get number of elements in the bundle
Object oriented style
SYNOPSIS
public int ResourceBundle::count (void )
DESCRIPTION
Procedural style
int resourcebundle_count (ResourceBundle $r)
Get the number of elements in the bundle.
PARAMETERS
o $r
-ResourceBundle object.
RETURN VALUES
Returns number of elements in the bundle.
EXAMPLES
Example #1
resourcebundle_count(3) 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
SEE ALSO
resourcebundle_get(3).
PHP Documentation Group RESOURCEBUNDLE_COUNT(3)