<?php $stringInicial = "te12te";echo str_replace("te","vi",$stringInicial);
Standard input is empty
vi12vi
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!