substring in coldfusion

Discussion in 'Programming' started by gigamike, May 25, 2007.

  1. #1
    Hi Guys,

    please help, newbie here in cfm. what function in php similar to this one:

    substr("mystring", 0, 1); // returns m

    Thanks,

    Mike
     
    gigamike, May 25, 2007 IP
  2. tbarr60

    tbarr60 Notable Member

    Messages:
    3,455
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    210
    #2
    Try

    Left(string, length) //returns number of characters defined by length

    or

    Mid(string, start, count) //returns the set of characters from string, beginning at start, of length count.
     
    tbarr60, May 25, 2007 IP
  3. gigamike

    gigamike Active Member

    Messages:
    165
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    thanks a lot bro.


     
    gigamike, May 29, 2007 IP