update : 2015.11.03
php.shukuma.com

검색:
 
 
Get number of elements in the bundle

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.

예제

Example #1 resourcebundle_count() example

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

Example #2 OO example

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

위 예제의 출력:

42

참고