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

    Join Date
    Jan 2000
    Rep Power
    is there a simple way of adding bits to variables - say at the start and end.

    e.g $a = "foobar"

    but I need "$foobar$"

    so how do I add the $ at the start and end of the variable ??


    Comments on this post

    • Gran Roguismo agrees
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 1999
    Rep Power
    $a = "$foobar$";

    On special characters use the backslash, for example double quotes can be displayed using ".

    I hope this is what you were looking for.


Similar Threads

  1. Passing POST variables
    By rlorenzo in forum PHP Development
    Replies: 11
    Last Post: June 6th, 2004, 03:00 PM
  2. help with assigning variables, variable passing/ retrieval
    By pinkipodmini in forum PHP Development
    Replies: 0
    Last Post: February 13th, 2004, 10:40 PM
  3. Replies: 2
    Last Post: February 11th, 2004, 12:03 AM
  4. adding two variables in a main
    By Angelo in forum C Programming
    Replies: 10
    Last Post: February 1st, 2004, 01:58 AM
  5. adding a space between variables
    By micronack in forum Perl Programming
    Replies: 1
    Last Post: November 9th, 2003, 09:30 AM

IMN logo majestic logo threadwatch logo seochat tools logo