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!

Thanks!

View Demo

https://w3lessons.info/wp-content/uploads/2012/02/unicode1.pnghttps://w3lessons.info/wp-content/uploads/2012/02/unicode1-150x150.pngkarthikeyanPHPmulti language php,tips & tricksHi guys, Now I am going to tell how to add multi language support for your websiteStep 1:Create a header with charset utf-8 with the following code and add this code into your header fileStep 2:Please don’t forget to share and subscribe to latest updates of the blog. Also...PHP, HTML5, CSS, jQuery, Angular, Facebook Style Scripts & demos

Related Posts