Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-10-2006, 12:28 AM   PM User | #1
urgido
Regular Coder

 
Join Date: Aug 2005
Posts: 257
Thanks: 8
Thanked 0 Times in 0 Posts
urgido is an unknown quantity at this point
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...
urgido is offline   Reply With Quote
Old 11-10-2006, 12:51 AM   PM User | #2
Nicklas
New Coder

 
Join Date: Jun 2006
Location: Sweden
Posts: 49
Thanks: 0
Thanked 3 Times in 3 Posts
Nicklas is on a distinguished road
Take a look at substr()
Nicklas is offline   Reply With Quote
Old 11-10-2006, 12:59 AM   PM User | #3
urgido
Regular Coder

 
Join Date: Aug 2005
Posts: 257
Thanks: 8
Thanked 0 Times in 0 Posts
urgido is an unknown quantity at this point
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
urgido is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:13 PM.


Advertisement
Log in to turn off these ads.