Insert text at x character point

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Insert text at x character point

Post by GeXus »

Say I wanted to insert some text at 150 characters into a string, how would I go about doing this? Thanks!
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Post by GeXus »

Nevermind, I've got it.. i just used substr to split the string into two, beginning and end based and inserted the text which worked as needed.
Post Reply