Return to Snippet

Revision: 37719
at December 16, 2010 01:59 by Waldio


Initial Code
<?php

  $var = "Dit is gewoon wat tekst";
  $var1 = str_replace(Array('i', 'e'), Array('e', 'i', $var); //i wordt vervangen door e en e door i
  $var2 = str_replace(Array('i', 'e'), 'o', $var); //i en e worden vervangen door o

?>

Initial URL
http://nl3.php.net/str_replace

Initial Description

                                

Initial Title
str_replace met arrays

Initial Tags

                                

Initial Language
PHP