index.php เป็นไฟล์ php ธรรมดา เรียก class language แล้วก็เรียกฟังก์ชั่น trans อีกที
Code (PHP)
<?php
class language {
static public function trans($intext){
require_once("languages/"._SITE_LN_.".php");
// เรียกไฟล์ภาษามาทำงานอีกที เช่น languages/th.php;
}
}
?>