first few characters only


Posted on 16th Feb 2014 07:03 pm by admin

hi, does anyone know how to use PHP to take the first few words of a text and limit them? i have seen this in many news sites where the news story headline reads like "woman found in obama's bedroom today at....... read more. ('read more' is a link)

what i am looking for is something that says i will take the first 100 characters of the entry and then print "...read more" as a link to the full story.

Did you know?Explore Trending and Topic pages for more stories like this.
thanks
No comments posted yet

Your Answer:

Login to answer
246 Like 28 Dislike
Previous forums Next forums
Other forums

Place specific image in html page when specific name is typed.
Hello,

Fairly new to PHP and was curious if someone might know how to solve a fairly simple r

New Search Engine problem
Hey everyone,

I have a ZIP Code Radius search engine already functional. it displays all of t

help with image upload code
Hello,

right now this code I have resizes images and then places them into the uploads folder

Object Interfaces
EDIT: Never mind, I just updated to php 5.

Hey all,

I'm currently experimenting with p

word wrap in emails help needed
Hello, I understand how wordwrap works in php and have used it well before. However when I used wor

Extracting Long text from message class with parameters
Hi,

I would like to extract the long text from a message class. However, the long text ha

Post, not working, please help
The error is:
Method Not Allowed
The requested method POST is not allowed for the URL /student

Date/Time and Checkbox
Hi Everyone,

I am trying to figure out how to insert the current date and tim

Looking for help on using joining mysql tables and php....
Does anyone have any good links to references on how to pull mysql data, through joining tables and

Page not Loading After Test
Hey All

It seemed that an inlcude statement wasn't working for some reason, so I tried a more

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash