0 Replies Latest reply on Feb 10, 2012 11:04 PM by winrol

    Adding whitespace

    winrol

      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