variable changing

Sharky Forums


Results 1 to 3 of 3

Thread: variable changing

  1. #1
    Tiger Shark Muk108's Avatar
    Join Date
    Feb 2002
    Location
    Ohio
    Posts
    868

    variable changing

    i have a variable, and i want to be able to take a 4 digit number and insted of having it show up as... XXXX i want it to show up as XX:XX is there a way i can do this and the variable to equal that new form? this is for php.
    WHy...why...

  2. #2
    Hammerhead Shark
    Join Date
    Feb 2001
    Location
    Columbus, Ohio
    Posts
    1,277
    Not quite sure what you mean by:

    "is there a way i can do this and the variable to equal that new form?"


    Anyways, here's my guess:

    PHP Code:
    $var XXXX;
    $newvar substr($var02) . ':' substr($var24); 
    Not sure if you can put all of the $newvar on the same line, but I dont see why not.

  3. #3
    Tiger Shark Muk108's Avatar
    Join Date
    Feb 2002
    Location
    Ohio
    Posts
    868
    oh sweet you knew exactly what i was talking about. thank you very much
    WHy...why...

Posting Permissions

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