unicode - PHP Online
Form of PHP Sandbox
Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php
in the places where the PHP script should be executed.
Result of php executing
Full code of unicode.php
- <?php
- $s1 = '49å.png';
- $s2 = '|49å|';
- function conv( $str )
- {
- // $str = preg_replace('/[^[:print:]]/', '', $str); // todo brainstorm
- return strtr(utf8_decode($str),
- utf8_decode(
- 'ŠŒŽšœžŸ¥µÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýÿ'),
- 'SOZsozYYuAAAAAAACEEEEIIIIDNOOOOOOUUUUYsaaaaaaaceeeeiiiionoooooouuuuyy');
- }
- echo conv($s1) . "\n";
- echo conv($s2);
File Description
- unicode
- PHP Code
- 08 Sep-2022
- 488 Bytes
You can Share it:
Latest PHP Pastes