Test Ar-PHP Functionality Online

header line!
Test PHP Function

























Ar-PHP Manual

method str2graph [line 148]

resource str2graph( string $word, [string $dir = 'ltr'], [string $lang = 'en'], [integer $red = null], [integer $green = null], [integer $blue = null])

Translate Arabic or English word into Hieroglyphics



Tags:

return:  Image resource identifier
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

string   $word   Arabic or English word
string   $dir   Writing direction [ltr, rtl, ttd, dtt] (default ltr)
string   $lang   Input language [en, ar] (default en)
integer   $red   Value of background red component (default is null)
integer   $green   Value of background green component (default is null)
integer   $blue   Value of background blue component (default is null)

Example
  1.      include('./I18N/Arabic.php');
  2.      $obj new I18N_Arabic('Hiero');
  3.  
  4.      $word $_GET['w'];
  5.      $im   $obj->str2hiero($word);
  6.  
  7.      header ("Content-type: image/jpeg");
  8.      imagejpeg($im''80);
  9.      ImageDestroy($im);
Popular
Recent
Links
Ads!
footer line!

No Software Patents! General Public License

Home | Twitter | Blog | Contact

Copyright © 2006 - 2016 Khaled Al-Sham'aa