|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
elipsis in title, words
okay I have seen many places where there is maybe an elipses [...] in the title or words of a search or jsut display of things. How can this be achieved? ie:
In todays news, many said, ... [more] you know, that sort of thing. And the link goes to the full story. thank you.
__________________
hey it's the CHARKING |
|
#2
|
|||
|
|||
|
A simple method I've seen used many times is to have 2 textareas. The first is the "introductory paragraph" and the 2nd is the rest of the body...
What you can do is place the ellipses after the contents of the first textarea.
__________________
____________________________________________ Developer Shed Weekly Writer | DevArticles Forum Moderator Build Your Own KlipFolio Klip With PHP FrankManno.com - Under Construction Design Interactive Group - Under Construction |
|
#3
|
|||
|
|||
|
thanks FrankieShakes
Thanks, I'll try that, but what about a php function that can cut a sentence off after a certain amount of words or characters? It seems like I had seen something like that before...
|
|
#4
|
||||
|
||||
|
Yeah, just browse through the function reference at php.net and you'll find that with substr(), you can truncate a string for this type of display.
PHP Code:
Should output: "Hello, W. . . [more]" |
|
#5
|
|||
|
|||
|
thanks
thank you for that, that's just what I was looking for. I knew there was a function for it, but couldn't think of it, and don't know a lot of more advanced php things. thanks again!
|
![]() |
| Viewing: Dev Articles Community Forums > Programming > General Programming Help > elipsis in title, words |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|