Query: resourcebundle_create
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
RESOURCEBUNDLE_CREATE(3) 1 RESOURCEBUNDLE_CREATE(3) ResourceBundle::create - Create a resource bundle Object oriented style (method)SYNOPSISpublicstatic ResourceBundle ResourceBundle::create (string $locale, string $bundlename, [bool $fallback])DESCRIPTIONProcedural style ResourceBundle resourcebundle_create (string $locale, string $bundlename, [bool $fallback]) Object oriented style (constructor): ResourceBundle::__construct (string $locale, string $bundlename, [bool $fallback]) Creates a resource bundle.PARAMETERSo $locale - Locale for which the resources should be loaded (locale name, e.g. en_CA). o $bundlename - The directory where the data is stored or the name of the .dat file. o $fallback - Whether locale should match exactly or fallback to parent locale is allowed.RETURN VALUESReturns ResourceBundle object or NULL on error.EXAMPLESExample #1 resourcebundle_create(3) example <?php $r = resourcebundle_create( 'es', "/usr/share/data/myapp"); echo $r['teststring']; ?> Example #2 resourcebundle_create(3) example <?php $r = ResourceBundle::create( 'es', "/usr/share/data/myapp"); echo $r['teststring']; ?> The above example will output: iHola, mundo!SEE ALSOresourcebundle_get(3). PHP Documentation Group RESOURCEBUNDLE_CREATE(3)
Related Man Pages |
---|
numfmt_create(3) - php |
resourcebundle(3) - php |
locale_get_display_region(3) - php |
resourcebundle_get_error_code(3) - php |
resourcebundle_get_error_message(3) - php |
Similar Topics in the Unix Linux Community |
---|
Insert a break page after certain string using SED |