the simplest of questions..but driving me mad

Discussion in 'PHP' started by jacka, Jun 26, 2008.

  1. #1
    Hi
    How do you put equivalent of   in php?
    ie how do I put 5 or 6 spaces before a text I like to display.
    Thanks
    :confused::confused::confused:
     
    jacka, Jun 26, 2008 IP
  2. mordimi

    mordimi Active Member

    Messages:
    177
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    include it in a echo "";


    example:

    <?
    echo "example&nbsp;example";
    ?>
     
    mordimi, Jun 26, 2008 IP
  3. furnissg

    furnissg Peon

    Messages:
    61
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    you can jsut echo '&nbsp;' if you wish

    or you could use CSS to add a set left margin
     
    furnissg, Jun 26, 2008 IP
  4. jacka

    jacka Peon

    Messages:
    165
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That did it.
    Thanks.
    For some reason it did not work when I tried previously.
    :D:D
     
    jacka, Jun 26, 2008 IP
  5. Weirfire

    Weirfire Language Translation Company

    Messages:
    6,979
    Likes Received:
    365
    Best Answers:
    0
    Trophy Points:
    280
    #5
    Maybe you left out the semi-colon when printing it. I've done that before

    e.g.

    print "&nbsp";
     
    Weirfire, Jun 26, 2008 IP