Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    about space in php

    hi all

    now i'm new with php < my Q is :

    how can i make ( long space ) in the string

    i want the output like this

    " my name is ( me )!";

    thx

  • #2
    Senior Coder
    Join Date
    Jun 2008
    Location
    New Jersey
    Posts
    2,535
    Thanks
    45
    Thanked 259 Times in 256 Posts
    By long space, do you mean more then one concurrent whitespace in a sentence? Have you tried &nbsp;?

  • Users who have thanked Keleth for this post:

    love_to_learn (03-05-2012)

  • #3
    New to the CF scene
    Join Date
    Feb 2012
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts
    &nbsp;

    worked!

    thx Kelethfor your Help

  • #4
    Banned
    Join Date
    Apr 2011
    Posts
    656
    Thanks
    14
    Thanked 69 Times in 69 Posts
    One option

    Code:
    <?php
    echo '"'. str_repeat('&nbsp;', 20).'"';
    ?>
    inserts 20 blank spaces between the ""

  • Users who have thanked webdev1958 for this post:

    love_to_learn (03-06-2012)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •