ResourceBundle::count

(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

int resourcebundle_count ( ResourceBundle $r )

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:

resourcebundle_get() -

doc_php
2016-02-24 15:57:51
Comments
Leave a Comment

Please login to continue.