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

參見

add a note add a note

User Contributed Notes

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