PHP Doku:: Get collator s last error code - collator.geterrorcode.html

Verlauf / Chronik / History: (3) anzeigen

Sie sind hier:
Doku-Startseite ≥ PHP-Handbuch ≥ Funktionsreferenz ≥ Unterstützung menschlicher Sprache und Zeichenkodierung ≥ Internationalization Functions ≥ The Collator class ≥ Collator::getErrorCode -- collator_get_error_code

Ein Service von Reinhard Neidl - Webprogrammierung.

The Collator class

<<Collator::getAttribute -- collator_get_attribute

Collator::getErrorMessage -- collator_get_error_message>>

Collator::getErrorCode

collator_get_error_code

(PHP 5 >= 5.3.0, PECL intl >= 1.0.0)

Collator::getErrorCode -- collator_get_error_code — Get collator's last error code

Beschreibung

Object oriented style

int Collator::getErrorCode ( void )

Procedural style

int collator_get_error_code ( Collator $coll )

Parameter-Liste

coll

Collator object.

Rückgabewerte

Error code returned by the last Collator API function call.

Beispiele

Beispiel #1 collator_get_error_code() example

<?php
$coll 
= collator_create( 'en_US' );
if( 
collator_get_attribute( $coll, Collator::FRENCH_COLLATION ) === false )
        
handle_error( collator_get_error_code() );
?>

Siehe auch


Keine BenutzerBeiträge.
- Beiträge aktualisieren...



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)