<?php echo substr_replace( '1234567890', '.', 4, 0).PHP_EOL; echo substr_replace( '1234567890', '.', -4, 0).PHP_EOL;
Standard input is empty
1234.567890 123456.7890
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!