Jump to content

Add space after 7 characters


Hyperjase

Recommended Posts

Hiya all,

 

Final one from me for now!

 

I'm trying to add a space into a string, which is 12 digits long, I need to add a space after character number 7, I've looked at the explode syntax but I'm struggling to find a way of counting 7 chars in and add a space, or split the string in two and then just output them with a space in between (which would be easier I think).

 

Thanks,

 

Jason

Link to comment
https://forums.phpfreaks.com/topic/251451-add-space-after-7-characters/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.