Quantcast
Channel: Adobe Community : All Content - PHP Application Development (read only)
Viewing all articles
Browse latest Browse all 107

Adding whitespace

$
0
0

Hi, what I want to do is add some white space between to sets of text that gets posted to my facebook status.

This is what I have so far.

 

+++++++++++++++++

$fbUpdate = "YMN Prime: ". $_POST['ymnPrime'];

$fbUpdate = $fbUpdate . "Bank Prime: " . $_POST['bankPrime'];

++++++++++++++++

 

This is what I get:

 

YMN Prime: 2.00%Bank Prime: 3.00%.

 

What I want is to add 4 spaces between the % and the B in Bank.

 

YMN Prime: 2.00%    Bank Prime: 3.00%.

 

I have tried many combinations  with single quoetes, double quotes, str_pad and   all do not seem to work.  I don't know if I have a wrong combination of quotes or what ever.

 

Any help would be greatly appreciated.

 

Thanks

 

winrol


Viewing all articles
Browse latest Browse all 107

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>