PHP 8.1.0 Released!

ResourceBundle::count

resourcebundle_count

(PHP 5 >= 5.3.2, PHP 7, PHP 8, PECL intl >= 2.0.0)

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

Açıklama

Nesne yönelimli kullanım

public ResourceBundle::count(): int

Yordamsal kullanım

resourcebundle_count(ResourceBundle $bundle): int

Get the number of elements in the bundle.

Değiştirgeler

bundle

ResourceBundle object.

Dönen Değerler

Returns number of elements in the bundle.

Örnekler

Örnek 1 resourcebundle_count() example

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

Örnek 2 OO example

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

Yukarıdaki örneğin çıktısı:

42

Ayrıca Bakınız

add a note add a note

User Contributed Notes

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