Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function unicodes($sText)
- {
- $aReplacePL = array(
- 'ą' => 'ą',
- 'ę' => 'ę',
- 'ś' => 'ś',
- 'ć' => 'ć',
- 'ó' => 'ó',
- 'ń' => 'ń',
- 'ż' => 'ż',
- 'ź' => 'ź',
- 'ł' => 'ł',
- 'Ą' => 'Ą',
- 'Ę' => 'Ę',
- 'Ś' => 'Ś',
- 'Ć' => 'Ć',
- 'Ó' => 'Ó',
- 'Ń' => 'Ń',
- 'Ż' => 'Ż',
- 'Ź' => 'Ź',
- 'Ł' => 'Ł'
- );
- return str_replace(array_keys($aReplacePL), array_values($aReplacePL), $sText);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement