/ Published in: PHP
                    
                                        ISO-8859-1 (Latin 1) full with all special characters:
results in
TRY THIS: ÄÖÜß
                results in
TRY THIS: ÄÖÜß
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
 <?php function fullUpper($str){ // convert to entities $pattern = '/&([a-z])(uml|acute|circ'; $pattern.= '|tilde|ring|elig|grave|slash|horn|cedil|th);/e'; $replace = "'&'.strtoupper('\\1').'\\2'.';'"; // convert from entities back to characters foreach($htmltable as $key => $value) { } } echo fullUpper("try this: äöüß"); ?>
Comments
                    Subscribe to comments
                
                