User Tools

Site Tools


apps:php

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
apps:php [2011-02-09 21:52] – php renamed to apps:php rootapps:php [2014-06-17 21:08] – translation, hint str_replace root
Line 1: Line 1:
 ====== PHP ====== ====== PHP ======
  
-== Umlaute ersetzen ==+== Replace umlauts == 
 + 
 +**!! This is really old, don't use it !!** // see comment below //
  
   function convertUmlaute($text){   function convertUmlaute($text){
Line 28: Line 30:
   }   }
  
 +This function uses preg_replace, which works with regular expressions. For better performance I recommend to use str_replace. A short example: 
 +  $text = str_replace("ä", "ä", $text);
apps/php.txt · Last modified: 2014-12-18 20:08 by 127.0.0.1