Test Ar-PHP Functionality Online

header line!
Test PHP Function










Ar-PHP Manual

static method arNum [line 349]

static String arNum( string $string)

Render numbers in given string using HTML entities that will show them as Indian digits (i.e. ١, ٢, ٣, etc.) whatever browser language settings are (if browser supports UTF-8 character set).



Tags:

return:  Original string after replace digits by HTML entities that will show given number using Arabic digits
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

string   $string   String includes some digits here or there

Example
  1.    include('./I18N/Arabic.php');
  2.    $obj new I18N_Arabic('Transliteration');
  3.  
  4.    $ar_word_1 $obj->en2ar($en_word_1);
  5.    $en_word_2 $obj->ar2en($ar_word_2);
Popular
Recent
Links
Ads!
footer line!

No Software Patents! General Public License

Home | Twitter | Blog | Contact

Copyright © 2006 - 2016 Khaled Al-Sham'aa