Skip navigation
Currently Being Moderated

Adding whitespace

Feb 10, 2012 11:04 PM

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

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points