ResourceBundle::count

resourcebundle_count

(PHP >= 5.3.2, PECL intl >= 2.0.0)

ResourceBundle::count -- resourcebundle_countGet number of elements in the bundle

Опис

Об'єктно-орієнтований стиль

public int ResourceBundle::count ( void )

Процедурний стиль

int resourcebundle_count ( ResourceBundle $r )

Get the number of elements in the bundle.

Параметри

r

ResourceBundle object.

Значення, що повертаються

Returns number of elements in the bundle.

Приклади

Приклад #1 resourcebundle_count() example

<?php
$r 
resourcebundle_create'es'"/usr/share/data/myapp");
echo 
resourcebundle_count($r);
?>

Приклад #2 OO example

<?php
$r 
= new ResourceBundle'es'"/usr/share/data/myapp");
echo 
$r->count();
?>

Наведений вище приклад виведе:

42

Прогляньте Також

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top