Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Aug 2005
    Posts
    257
    Thanks
    8
    Thanked 0 Times in 0 Posts

    replace large text with ...

    Hi..

    I want to know how I can replace large text(+15 characters) with ...?

    Example:
    Coding Forums is the best community
    replace with:
    Coding Forums is...

  • #2
    New Coder
    Join Date
    Jun 2006
    Location
    Sweden
    Posts
    49
    Thanks
    0
    Thanked 3 Times in 3 Posts
    Take a look at substr()

  • #3
    Regular Coder
    Join Date
    Aug 2005
    Posts
    257
    Thanks
    8
    Thanked 0 Times in 0 Posts
    thank you I post the solution if someone have the same question.

    example:

    PHP Code:
    $text="My website is the best place";
     echo 
    substr($text010)."..."
    Regards and thanks Nickals


  •  

    Posting Permissions

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