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";


Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button