SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Thread: Limit output

  1. #1
    SitePoint Member
    Join Date
    Jun 2002
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Limit output

    I am using PHP show descriptions from a database.The decscriptions are linked to another page and I need to limit the linked descriptions to a 50 (or 100) characters. I can't find the function, although I'm sure as soon as my boss stops looking over my shoulder I will. But just in case can someone help? Please? Thank you.

  2. #2
    SitePoint Zealot LiamW's Avatar
    Join Date
    Mar 2003
    Location
    Hamilton, Ontario
    Posts
    129
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    www.php.net/strlen


    *edit

    sorry that should be www.php.net/substr


Bookmarks

Posting Permissions

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