downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ResourceBundle::create> <ResourceBundle
[edit] Last updated: Fri, 25 May 2012

view this page in

ResourceBundle::count

resourcebundle_count

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

ResourceBundle::count -- resourcebundle_countバンドル内の要素数を取得する

説明

オブジェクト指向型

int ResourceBundle::count ( void )

手続き型

int resourcebundle_count ( ResourceBundle $r )

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

パラメータ

r

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

参考



add a note add a note User Contributed Notes ResourceBundle::count
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites