complete Complete User Request Submission section RAD-1
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Support\Converters;
|
||||
|
||||
class PersianToEnglish
|
||||
{
|
||||
public static function toEnglish(string $value): string
|
||||
{
|
||||
$persian = ['۰','۱','۲','۳','۴','۵','۶','۷','۸','۹'];
|
||||
$english = ['0','1','2','3','4','5','6','7','8','9'];
|
||||
|
||||
return str_replace($persian, $english, $value);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user