Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

intl_is_failure(3) [php man page]

INTL_IS_FAILURE(3)							 1							INTL_IS_FAILURE(3)

intl_is_failure - Check whether the given error code indicates failure

SYNOPSIS
bool intl_is_failure (int $error_code) DESCRIPTION
PARAMETERS
o $error_code - is a value that returned by functions: intl_get_error_code(3), collator_get_error_code(3) . RETURN VALUES
TRUE if it the code indicates some failure, and FALSE in case of success or a warning. EXAMPLES
Example #1 intl_is_failure(3) example <?php function check( $err_code ) { var_export( intl_is_failure( $err_code ) ); echo " "; } check( U_ZERO_ERROR ); check( U_USING_FALLBACK_WARNING ); check( U_ILLEGAL_ARGUMENT_ERROR ); ?> The above example will output something similar to: false false true SEE ALSO
intl_get_error_code(3), collator_get_error_code(3), Collator-getErrorCode(3). PHP Documentation Group INTL_IS_FAILURE(3)

Check Out this Related Man Page

RESOURCEBUNDLE_GET_ERROR_CODE(3)					 1					  RESOURCEBUNDLE_GET_ERROR_CODE(3)

ResourceBundle::getErrorCode - Get bundle's last error code.

	Object oriented style

SYNOPSIS
public int ResourceBundle::getErrorCode (void ) DESCRIPTION
Procedural style int resourcebundle_get_error_code (ResourceBundle $r) Get error code from the last function performed by the bundle object. PARAMETERS
o $r -ResourceBundle object. RETURN VALUES
Returns error code from last bundle object call. EXAMPLES
Example #1 resourcebundle_get_error_code(3) example <?php $r = resourcebundle_create( 'es', "/usr/share/data/myapp"); echo $r['somestring']; if(intl_is_failure(resourcebundle_get_error_code($r))) { report_error("Bundle error"); } ?> Example #2 OO example <?php $r = new ResourceBundle( 'es', "/usr/share/data/myapp"); echo $r['somestring']; if(intl_is_failure(ResourceBundle::getErrorCode($r))) { report_error("Bundle error"); } ?> SEE ALSO
resourcebundle_get_error_message(3), intl_get_error_code(3), intl_is_failure(3). PHP Documentation Group RESOURCEBUNDLE_GET_ERROR_CODE(3)
Man Page

5 More Discussions You Might Find Interesting

1. HP-UX

HP-UX Health Check

Hi Experts, I want to check health of hp-ux box. Basically I want to check if there are possibilities of network/memory/cpu bottleneck? Are there are any commands available other than glance in hp-ux for the same? (11 Replies)
Discussion started by: sai_2507
11 Replies

2. UNIX for Dummies Questions & Answers

need help with a check

Hi Please can you help me to check whether we received entire file or not from another host (2 Replies)
Discussion started by: suppu
2 Replies

3. UNIX for Dummies Questions & Answers

How to check if a number exists?

Hello, May i please know how do i check if the given input argument is one of the listed numbers then success else failure. I am using bash shell. if then echo "success" else echo "failure" fi Thank you. (2 Replies)
Discussion started by: Ariean
2 Replies

4. Red Hat

Check PSU Status

Hello, We have a cluster and each server have 2 PSU. An alarm should be raised in case of failure so we need to check periodically the PSU status wth a script. The first idea was to check with ipmitool but this take some time to get the data and we face some other issues now due to that... (1 Reply)
Discussion started by: @dagio
1 Replies

5. UNIX for Dummies Questions & Answers

Output checker setting variable to TRUE or FALSE

Hi All, I'm trying to come up a way to check the output of some data i have. I need to be able to check for the order of the output and if its correct set a variable to false if it isnt. Currently the data is in the below format, this is the value which should cause the variable be set... (4 Replies)
Discussion started by: mutley2202
4 Replies