Dot dot after txt limit

Started on the old forum in January 2010 · view the original in the archive · old links redirect here

4 replies · 450 views · started 16 years ago · 1 min read

4 participants
Ponick Developer · 216 posts #1

any one help me to create something like this?

$txt="agmgagmgdptgmgagmgagm.Tgagmga.Mgwpagmgapjgmga.Dgmjgmgtpag.Agm.Agm";

if $txt character >10

then i wanna show 1st 10 txt character . .

Please help me

/* I don't know everything hehe */

Find me on facebook

WereWolveZ Developer · 51 posts #2

slice message mate?

$sql = "".htmlspecialchars((strlen($item[5])<11?$item[5]:substr($item[5], 0, 11)));
$pmmsg2 = getbbcode($sql,$sid, 0);

With Christmas quickly approaching you’re going to need to get a gift for your werewolf lover and I’m here to help you out. Here are 10 gift ideas perfect for any fan of the furry.😌 http://vampires.com and http://darkness.com

GumSlone Administrator Principal · 1,690 posts #3
$txt="agmgagmgdptgmgagmgagm.Tgagmga.Mgwpagmgapjgmg a.Dgmjgmgtpag.Agm.Agm";

if(strlen($text)>10) $text = substr($text, 0, 10).' ...';

echo $text;

Advertise your mobile site for FREE with AdTwirl

External image (may be gone)

djdevil89 Senior · 287 posts #5

ok i had sumething like that before now im stuck lol i want to finish the last word before it cuts and adds the ... any ideas?

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close