Hi,
I want to have a list of info
langs.php
array langs
GB = Hello, Red,
FRE = Bonjour, Rouge
stored in an array on a file
www.siteurl.com/lang=GB
The array then being used to populate a page that has several pieces of content that are translated
So for GB it says Hello and down the page the word Red appears and for French it says Bonjour and the word Rouge appears.
<?php include("<?php echo $lang ?>/hello.php"); ?>
<?php include("<?php echo $langs ?>/colour.php"); ?>
or
siteurl.com?lang=GB
<body>
<div id="hello">
<?php echo $lang1 ?>
</div>
<div id="colour">
<?php echo $lang2 ?>
</div>
</body>
I have searched and searched for help with this simple task but I do not know what to search for so I am stumped.
Please help.
Edit:
p.s this needs to be done without using mysql database, just a seperate file with array/s
I want to have a list of info
langs.php
array langs
GB = Hello, Red,
FRE = Bonjour, Rouge
stored in an array on a file
www.siteurl.com/lang=GB
The array then being used to populate a page that has several pieces of content that are translated
So for GB it says Hello and down the page the word Red appears and for French it says Bonjour and the word Rouge appears.
<?php include("<?php echo $lang ?>/hello.php"); ?>
<?php include("<?php echo $langs ?>/colour.php"); ?>
or
siteurl.com?lang=GB
<body>
<div id="hello">
<?php echo $lang1 ?>
</div>
<div id="colour">
<?php echo $lang2 ?>
</div>
</body>
I have searched and searched for help with this simple task but I do not know what to search for so I am stumped.
Please help.
Edit:
p.s this needs to be done without using mysql database, just a seperate file with array/s
Last edited: