#1
  1. No Profile Picture
    chinnavi
    Guest
    Devshed Newbie (0 - 499 posts)
    hai all;
    i need a help in doing this task.

    i have a variable $i;
    where $i = 12;

    I want to get a string variable from this as
    $s = "ABCD12";
    where 12 is from $i and "ABCD" is a String.

    i need to do

    $s = "ABCD" + $i Like that..

    where $s will become "ABCD12"..

    please help me in doing this..

    thanks in advance ...


    vijay
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    71
    Rep Power
    14
    $s = "ABCD$i";

    or

    $s = "ABCD".$i;

IMN logo majestic logo threadwatch logo seochat tools logo