Search Results
Get number of elements in the bundle
Sep 8, 2025 · ResourceBundle::count resourcebundle_count (PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 2.0.0) ResourceBundle::count -- resourcebundle_count — Get number of elements in the bundle
PHP 4 Manual ResourceBundle Get number of elements in the bundle Edit Report a Bug
Simple usage example of `ResourceBundle::count ()`. The ResourceBundle::count function is a built-in PHP function that returns the number of elements present in a resource bundle. A resource bundle is a collection of localizable data and is commonly used for internationalization and localization purposes in PHP applications.
ResourceBundle supports direct access to the data through array access pattern and iteration via foreach, as well as access via class methods. The result will be PHP value for simple resources and ResourceBundle object for complex ones. All resources are read-only.
Parameters r ResourceBundle object. Return Values Returns number of elements in the bundle.
ResourceBundle::count -- resourcebundle_count — Get number of elements in the bundle
