Arabic
[ class tree: Arabic ] [ index: Arabic ] [ all elements ]

Class: ArIdentifier

Source Location: /sub/ArIdentifier.class.php

Class Overview


This PHP class identify Arabic text segments


Author(s):

Copyright:

  • 2009 Khaled Al-Shamaa

Methods



Class Details

[line 103]
This PHP class identify Arabic text segments



Tags:

author:  Khaled Al-Shamaa <khaled.alshamaa@gmail.com>
copyright:  2009 Khaled Al-Shamaa
link:  http://www.ar-php.org
license:  LGPL


[ Top ]


Class Methods


static method identify [line 114]

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-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $str   UTF-8 multi language string

[ Top ]

static method isArabic [line 177]

static boolean isArabic( string $str, [string $inputCharset = null], [object $main = null])

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-Shamaa <khaled.alshamaa@gmail.com>
access:  public


Parameters:

string   $str   String
string   $inputCharset   (optional) Input charset [utf-8|windows-1256|iso-8859-6] default value is NULL (use set input charset)
object   $main   Main Ar-PHP object to access charset converter options

[ Top ]


Documentation generated on Tue, 18 Aug 2009 00:12:49 +0300 by phpDocumentor 1.4.0