codepad
[
create a new paste
]
login
|
about
Language:
C
C++
D
Haskell
Lua
OCaml
PHP
Perl
Plain Text
Python
Ruby
Scheme
Tcl
<?php $text = "hello world this is a string"; $text = substr_replace($text, '', 10, 1); echo $text . "\n"; $text = "hello world this is a string"; $text = str_replace(substr($text, 9, 1), substr($text, 7, 1), $text); echo $text . "\n";
Private
[
?
]
Run code
Submit