Logtalk 2.40

 
Thread Tools Search this Thread
Operating Systems OS X (Apple) OS X OpenSource RSS Logtalk 2.40
# 1  
Old 06-16-2010
CPU & Memory Logtalk 2.40

ImageAbout Logtalk
An object-oriented logic programming language that can use most Prolog implementations as a back-end compiler. As a multi-paradigm language, it includes support for both prototypes and classes, protocols (interfaces), component-based programming through category-based composition, event-driven programming, and high-level multi-threading programming.

More from Apple...
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question
LOCALE_GET_PRIMARY_LANGUAGE(3)						 1					    LOCALE_GET_PRIMARY_LANGUAGE(3)

Locale::getPrimaryLanguage - Gets the primary language for the input locale

	Object oriented style

SYNOPSIS
publicstatic string Locale::getPrimaryLanguage (string $locale) DESCRIPTION
Procedural style string locale_get_primary_language (string $locale) Gets the primary language for the input locale PARAMETERS
o $locale - The locale to extract the primary language code from RETURN VALUES
The language code associated with the language or NULL in case of error. EXAMPLES
Example #1 locale_get_primary_language(3) example <?php echo locale_get_primary_language('zh-Hant'); ?> Example #2 OO example <?php echo Locale::getPrimaryLanguage('zh-Hant'); ?> The above example will output: zh SEE ALSO
locale_get_script(3), locale_get_region(3), locale_get_all_variants(3). PHP Documentation Group LOCALE_GET_PRIMARY_LANGUAGE(3)