Character Limit on Link Titles

Discussion in 'PHP' started by Sportscapper Island, Jun 12, 2009.

  1. #1
    I am using a php based script to pull forum posts from vbulletin to my homepage. The script currently doesn't have a character limit for link titles. It just pulls the entire titles.

    I need someone to put some code in the script to set a character limit on link titles. Will pay.


    Please PM me. Thank you.
     
    Sportscapper Island, Jun 12, 2009 IP
  2. HorseGalleria

    HorseGalleria Peon

    Messages:
    91
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    HorseGalleria, Jun 12, 2009 IP
  3. Dotrebates

    Dotrebates Peon

    Messages:
    141
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    use substr(var,start,end)

    $info = "blah.";
    $cutinfo = substr($info, 0, 3);
    echo $cutinfo;

    The output would be: "bla"
     
    Dotrebates, Jun 14, 2009 IP