Utils.php 305 Bytes
Newer Older
Jenny Oktavia Doloksaribu committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<?php

namespace Faker\Provider\bn_BD;

class Utils
{
    public static function getBanglaNumber($number)
    {
        $english = range(0, 10);
        $bangla = array('০', '১', '২', '৩', '৪', '৫', '৬', '৭', '৮', '৯');

        return str_replace($english, $bangla, $number);
    }
}