I18N_Arabic

# Class: I18N_Arabic_Identifier

Source Location: /Arabic/Identifier.php

### Class Overview

This PHP class identify Arabic text segments

#### Author(s):

- Khaled Al-Sham'aa <khaled@ar-php.org>

#### Copyright:

- 2006-2016 Khaled Al-Sham'aa

### Methods

- identify
- isArabic

### Class Details

[line 102]
This PHP class identify Arabic text segments

#### Tags:

author: | Khaled Al-Sham'aa <khaled@ar-php.org>
copyright: | 2006-2016 Khaled Al-Sham'aa
link: | http://www.ar-php.org
license: | LGPL

[ Top ]

### Class Methods

### static method identify [line 122]

`static array identify( string $str)`

Identify Arabic text in a given UTF-8 multi language string

#### Tags:

return: | Offset of the beginning and end of each Arabic segment in sequence in the given UTF-8 multi language string
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
access: | public

#### Parameters:

string | $str | UTF-8 multi language string

[ Top ]

### static method isArabic [line 188]

`static boolean isArabic( string $str)`

Find out if given string is Arabic text or not

#### Tags:

return: | True if given string is UTF-8 Arabic, else will return False
author: | Khaled Al-Sham'aa <khaled@ar-php.org>
access: | public

#### Parameters:

string | $str | String

[ Top ]

Documentation generated on Fri, 01 Jan 2016 10:26:05 +0200 by phpDocumentor 1.4.0