Test Ar-PHP Functionality Online

header line!
Test PHP Function










Ar-PHP Manual

static method isFemale [line 106]

static boolean isFemale( string $str)

Check if Arabic word is feminine



Tags:

return:  Return true if input Arabic word is feminine
author:  Khaled Al-Sham'aa <khaled@ar-php.org>
access:  public


Parameters:

string   $str   Arabic word you would like to check if it is feminine

Example
  1.    include('./I18N/Arabic.php');
  2.    $obj new I18N_Arabic('Gender');
  3.  
  4.    echo "$name ";
  5.  
  6.    if ($obj->isFemale($name== true{
  7.       echo '(Female)';
  8.    }else{
  9.       echo '(Male)';
  10.    }
Popular
Recent
Links
Ads!
footer line!

No Software Patents! General Public License

Home | Twitter | Blog | Contact

Copyright © 2006 - 2016 Khaled Al-Sham'aa