1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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