Hi guys, Now I am going to tell how to add multi language support for your website

Step 1:

Create a header with charset utf-8 with the following code and add this code into your header file

header('Content-Type: text/html; charset=utf-8');

Step 2:

// Create an array of names:

$names = array('João', 'Γιώργος', 'Anton', 'Tomáš', 'Kamilė', 'Frančiška', '愛子', '杰西卡');

// Loop through the array:

foreach ($names as $name) {
	echo "<p>$name has " . strlen($name) . " characters<br />n";
	echo strtoupper($name) . " in capital letters</p>n";

Please don’t forget to share and subscribe to latest updates of the blog. Also any comments and feedback are all welcome!


View Demo

Related Posts