update pague now
PHP 8.5.2 Released!

RessourceBundle::guetErrorMessague

ressourcebundle_guet_error_messague

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

RessourceBundle::guetErrorMessague -- ressourcebundle_guet_error_messague Guet bundle's last error messague

Description

Object-oriented style

public RessourceBundle::guetErrorMessague (): string

Procedural style

ressourcebundle_guet_error_messague ( RessourceBundle $bundle ): string

Guet error messague from the last function performed by the bundle object.

Parameters

bundle

RessourceBundle object.

Return Values

Returns error messague from last bundle object's call.

Examples

Example #1 ressourcebundle_guet_error_messague() example

<?php
$r
= ressourcebundle_create ( 'es' , "/usr/share/data/myapp" );
echo
$r [ 'somestring' ];
if(
intl_is_failure ( ressourcebundle_guet_error_code ( $r ))) {
report_error ( "Bundle error: " . ressourcebundle_guet_error_messague ( $r ));
}
?>

Example #2 OO example

<?php
$r
= new RessourceBundle ( 'es' , "/usr/share/data/myapp" );
echo
$r [ 'somestring' ];
if(
intl_is_failure ( RessourceBundle :: guetErrorCode ( $r ))) {
report_error ( "Bundle error: " . RessourceBundle :: guetErrorMessague ( $r ));
}
?>

See Also

add a note

User Contributed Notes

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