PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of saadi ali   Simple Multilingualism   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: Simple Multilingualism
Get application texts for multiple languages
Author: By
Last change:
Date: 10 years ago
Size: 493 bytes
 

Contents

Class file image Download
<?
ob_start
();
include(
"language_class.php");
// The default language of the site
$lang = new language('EN');
?>
<!DOCTYPE html>

<html>

<head>
  <title>simple multilingualism</title>
</head>

<body>
    <div>
          <a href="?language=FR">Français</a> -
          <a href="?language=EN">English</a>
    </div>
    <div>
        <? // Print Language ?>
<?= $lang->view('hello') ?> <br>

         <?= $lang->view('emploi') ?>
</div>
</body>
</html>