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

search for in the

ResourceBundle::getErrorMessage> <ResourceBundle::create
[edit] Last updated: Fri, 24 May 2013

view this page in

ResourceBundle::getErrorCode

resourcebundle_get_error_code

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

ResourceBundle::getErrorCode -- resourcebundle_get_error_codeObtener el códido del último error del paquete

Descripción

Estilo orientado a objetos

int ResourceBundle::getErrorCode ( void )

Estilo por procedimientos

int resourcebundle_get_error_code ( ResourceBundle $r )

Obtiene el código del error de la última función realizada por el objeto paquete.

Parámetros

r

Un objeto de la clase ResourceBundle.

Valores devueltos

Devuelve el código del error de la última llamada del objeto paquete.

Ejemplos

Ejemplo #1 Ejemplo de resourcebundle_get_error_code()

<?php
$r 
resourcebundle_create'es'"/usr/share/data/myapp");
echo 
$r['somestring'];
if(
intl_is_failure(resourcebundle_get_error_code($r))) {
    
report_error("Error de paquete");
}
?>

Ejemplo #2 Ejemplo orientado a objetos

<?php
$r 
= new ResourceBundle'es'"/usr/share/data/myapp");
echo 
$r['somestring'];
if(
intl_is_failure(ResourceBundle::getErrorCode($r))) {
    
report_error("Error de paquete");
}
?>

Ver también



add a note add a note User Contributed Notes ResourceBundle::getErrorCode - [0 notes]
There are no user contributed notes for this page.

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