...

View Full Version : replace large text with ...



urgido
11-10-2006, 01:28 AM
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...

Nicklas
11-10-2006, 01:51 AM
Take a look at substr() (http://www.php.net)

urgido
11-10-2006, 01:59 AM
thank you I post the solution if someone have the same question.

example:


$text="My website is the best place";
echo substr($text, 0, 10)."...";

Regards and thanks Nickals



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum