Jump to content

[SOLVED] adding spaces into a string


simonp

Recommended Posts

Hi,

 

I have a post string that has eight characters in and need to add five spaces in between each character

 

Eg.

 

$account = "12345678"

 

I need

 

$account = "1    2    3    4    5    6    7    8"

 

What would be the best way to do this?

 

Cheers

 

Simon

Link to comment
https://forums.phpfreaks.com/topic/70605-solved-adding-spaces-into-a-string/
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.