How to make multilanguage site in php?
(like english,tamil)
Answers were Sorted based on User's Feedback
This is very easy. Showing data is hold in variables
(english.php and tamil.php) and change php according to
language with the help of cookies.
| Is This Answer Correct ? | 5 Yes | 1 No |
Answer / vasudeva kumar
In php 5.0 onwards php it self having I18n functionalities
to make multiple language sites
| Is This Answer Correct ? | 0 Yes | 0 No |
What the limitation of header() function in php?
What is cookie in php with example?
Where session is stored?
What is the scope of career in PHP/Mysql
Tell me how can we display information of a variable and readable by human with php?
What is the sign to start variables in PHP?
How to insert a line break in php string?
Is php still in demand?
What is trim function in php?
<?php include ("db.php"); $result = mysql_query("SELECT ques_id FROM questionbank order by ques_id limit 5 "); while($obj=mysql_fetch_array($result)) { $ad1[$obj['ques_id']]++;//Used an array and inserted the database query results into it. } $rand_keys=array_rand($ad1,1); //Did a random array function echo "First random id = ".$ad1[$rand_keys[0]]; echo "<br>Second random id = ".$ad1[$rand_keys[1]]; ?> <!--Its not working. Have any solution for this. -->
How check submit button is clicked in php?
How long does a session last in php?