How to convert English to Bangla Date Convert – By PHP coding - এস. আই. টি গ্রুপ

728x90 AdSpace

Trending
Wednesday, July 13, 2016

How to convert English to Bangla Date Convert – By PHP coding


Hi everyone. Today share with us how to convert English to Bangla Date convert by PHP conding. We are see some web site show Bangla date such as "বুধবার, জুলাই ১৩, ২০১৬". We add a php function what convert English date into Bangla date. It's very simple php code to convert the date. I hope you will enjoy the English to Bangla date converter php function. See this code > > >


$currentDate = date("l, F j, Y");
    

$engDATE = array(1,2,3,4,5,6,7,8,9,0, 'January', 'February', 'March','April', 'May', 'June', 'July', 'August','September', 'October', 'November', 'December', 'Saturday', 'Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday');
    

$bangDATE = array('১','২','৩','৪','৫','৬','৭','৮','৯','০','জানুয়ারী','ফেব্রুয়ারী','মার্চ','এপ্রিল','মে','জুন','জুলাই','আগস্ট','সেপ্টেম্বর','অক্টোবর','নভেম্বর','ডিসেম্বর','শনিবার','রবিবার','সোমবার','মঙ্গলবার',' বুধবার','বৃহস্পতিবার','শুক্রবার' ); 

$convertedDATE = str_replace($engDATE, $bangDATE, $currentDate); 

echo "$convertedDATE";




 
How to convert English to Bangla Date Convert – By PHP coding Reviewed by Unknown on 8:22:00 AM Rating: 5 Hi everyone. Today share with us how to convert English to Bangla Date convert by PHP conding. We are see some web site show Bangla dat...

No comments: