7) { $t = 1; } $fntClass = 'pers'; if (isset($_POST['fontclass'])) { $fntClass = $_POST['fontclass']; } $letters = array(); if (isset($_POST['answer'])) { $data = $_POST['data']; $qletters = explode(",", base64_decode($data)); } else { switch ($t) { case 1: // The "vaared" letters--letters that are always unconnected to the left $letters = array('و', 'ا', 'ر', 'د', 'ز', 'ژ', 'ذ'); // vaav, alef, re, daal, ze, zhe, zaal break; case 2: // letters with a left-stretch in final position $letters = array('ب', 'پ', 'ف', 'ت', 'ث', 'ک', 'گ'); // be, pe, fe, te, se, kaaf, gaaf break; case 3: // letters with a left-downward swing in final position $letters = array('س', 'ش', 'ص', 'ض', 'ل', 'ق', 'ن'); // sin, shin, saad, zaad, laam, qaaf, nun break; case 4: // one letter with the simplest, one with the most elegant arbesque: $letters = array('م', 'ی'); // mim, ye break; case 5: // letters with inward swing in final position $letters = array('ج', 'چ', 'ح', 'خ', 'ع', 'غ'); // jim, che, he (hotti), khe, `ayn, ghayn break; case 6: // *he (havvaz)* $letters = array('ه'); break; case 7: $letters = array('ط', 'ظ'); break; } srand((float)microtime() * 1000000); $qletters = array(); $qletters[] = $letters[array_rand($letters, 1)]; $qletters[] = $letters[array_rand($letters, 1)]; if (rand(0, 1)==1) $qletters[] = $letters[array_rand($letters, 1)]; // $qletters[] = $letters[rand(0, count($letters)-1)]; $data = implode(",", $qletters); $data = base64_encode($data); } ?> Test for Joining Group Letter

Test for Joining Group $t Letter".(count($letters)>1?"s":"")."

\n"; print "

You have answered correctly.

\n"; exit("

Back to the Persian Tests
"); } } ?>

Test for Joining Group Letter

Please join these 0 letters by typing them on your keyboard from right to left:

Keyboard layout, unshifted




Back to the Persian Tests