ResourceBundle::count

resourcebundle_count

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

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

说锟斤拷

锟斤拷锟斤拷锟斤拷锟斤拷锟�

public ResourceBundle::count ( void ) : int

锟斤拷锟教伙拷锟斤拷锟�

resourcebundle_count ( ResourceBundle $r ) : int

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

锟轿硷拷