Thread: Space to +

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    10
    Rep Power
    0
    How can I take all spaces from a variable and turn them into a + char

    Thanks
    David
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 1999
    Posts
    15
    Rep Power
    0
    $var="1 2";
    $var=str_replace(" ","+",$var);
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2000
    Posts
    10
    Rep Power
    0
    Thank you!

Similar Threads

  1. Replies: 2
    Last Post: January 30th, 2004, 04:56 AM
  2. Replies: 1
    Last Post: January 25th, 2004, 02:07 PM
  3. Replies: 0
    Last Post: January 16th, 2004, 02:10 AM
  4. w3c strict errors (10), css, and js questions
    By WorldBuilder in forum CSS Help
    Replies: 12
    Last Post: November 6th, 2003, 05:48 AM
  5. No, I will NOT let Windows eat my free space
    By vb.net in forum Dev Shed Lounge
    Replies: 19
    Last Post: September 11th, 2003, 11:19 PM

IMN logo majestic logo threadwatch logo seochat tools logo