Hi everyone,
Can you please let me know why I am getting error on populating Persian(Arabic)Numbers?!
I have saved the php file as "Uncode in UTF-8" format which can display the dropdown list in a HTML correctly but when I want to retrieve them in PHP I encountered with following errors
Errors:
(!) Notice: Use of undefined constant ١ - assumed '١' in C:\wamp\www\PHPCode\Test.php on line 14
(!) Notice: Use of undefined constant ٣١ - assumed '٣١' in C:\wamp\www\PHPCode\Test.php on line 14
* ١ = is a Persian number equal to 1
* ٣١ = is a Persian number equal to 31
<?php
$numberArray = array();
for ($i = ١; $i < ٣١; $i++)
{
$numberArray[] = $i;
}
for ($i = 0; $i < sizeof($numberArray); $i++) {
echo "$numberArray[$i]"."<br />";
}
?>
I really appreciate your time regarding this.