<?php

namespace Yajny\Helpers;

class StringReplacer
{
    public static function replaceArabicNumber(string $arabicText)
    {
        $replaceFrom = ['٠', '١', '٢', '٣', '٤', '٥', '٦', '٧', '٨', '٩'];
        $replaceTo = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];
        return str_replace($replaceFrom, $replaceTo, $arabicText);
    }
}