繁花不似锦
我已经解决了这个问题。下面是我的代码。$date = explode(" " , "15 กรกฎาคม 2562");$EnglishYear = $date[2] - 543;$testKey = '';$monthNamesThai = array("มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤษจิกายน","ธันวาคม");$monthNameEnglish = array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");foreach($monthNamesThai as $key => $monthNamesThai){ if($date[1] == $monthNamesThai){ $testKey = $key; }}$resultDate = $date[0]." ".$monthNameEnglish[$testKey]." ".$EnglishYear;echo $resultDate;