ResourceBundle::count

resourcebundle_count

バンドル内の要素数を取得する

説明

オブジェクト指向型

public int ResourceBundle::count()

手続き型

int resourcebundle_count(ResourceBundle $bundle)

バンドル内の要素数を取得します。

パラメータ

bundle

ResourceBundle オブジェクト。

戻り値

バンドル内の要素数を返します。

例1 resourcebundle_count の例

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

例2 オブジェクト指向の例

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

上の例の出力は以下となります。

42

参考

  • resourcebundle_get