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


Class file image Download
// The default language of the site
$lang = new language('EN');
<!DOCTYPE html>


  <title>simple multilingualism</title>

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

         <?= $lang->view('emploi') ?>