code ไว้เช็คไฟล์ภาษาว่ายังขาดตัวไหนบ้าง
โพสต์แล้ว: 04/11/2014 5:30 pm
ฝั่งภาษาไทยขาด
app.php
cli.php
migrator.php
plupload.php
code แบบสั้น
code แบบยาว
app.php
cli.php
migrator.php
plupload.php
code แบบสั้น
โค้ด: เลือกทั้งหมด
include($phpbb_root_path . 'language/en/common.' . $phpEx);
foreach($lang as $c => $c1){
$seta[] = $c;
}
include($phpbb_root_path . 'language/th/common.' . $phpEx);
foreach($lang as $b => $b1){
$setb[] = $b;
}
$result = array_diff($seta, $setb);
print_r($result);
โค้ด: เลือกทั้งหมด
$result_of_lost = compare_lost_value($seta,$setb);
echo '<pre>';
print_r($result_of_lost);
echo '</pre>';
function compare_lost_value($old,$new){
$temp = array();
$hit = false;
foreach ($old as $oi => $ovalue) {
$hit = false;
foreach ($new as $ni => $nvalue) {
if( $nvalue == $ovalue ){
$hit = true;
}
}
if($hit == false){
array_push($temp, $ovalue);
}
}
return $temp;
}
?>