fork download
  1. <?php
  2. $target="Test.Test1.Test2.";
  3. $search = ".";
  4. $replace = "/";
  5. print(str_replace($search, $replace, $target));
Success #stdin #stdout 0.02s 24252KB
stdin
Standard input is empty
stdout
Test/Test1/Test2/