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

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -