PHP Classes

File: Example-2.php

Recommend this page to a friend!
  Classes of Jake Bown   PHP Multilang   Example-2.php   Download  
File: Example-2.php
Role: Example script
Content type: text/plain
Description: Example #2
Class: PHP Multilang
Get translated application texts for languages
Author: By
Last change: Extension added
Date: 9 years ago
Size: 368 bytes


Class file image Download
<?php include("multilang.php"); if(isset($_GET['language']) && $_GET['language'] == "de") {$i = new multilang("de");} else {$i = new multilang("en");} ?>
<!DOCTYPE html>
<meta charset="UTF-8">
    <title>Define by GET</title>
<h1><?= $i->say("example_header"); ?></h1>
<p><?= $i->say("example_define_get"); ?></p>