php - How to insert a character inside a string -


$string=apple $add=£ $new=app£le 

i facing problem inserting character in string.

$string='apple'; $add='£'; $new=substr_replace($string,$add,3,0); echo $new; 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -