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

Multi Level Array Problem
hi all,

For example I have array like below:

$temp = array(array('north america', 'us'

split values
I have values that are returned to me in this format:

name=>test,age=>49

need Array help
This is what I have to do.
$teamname[1] = "Red Sox"
$teamname[2] = "Gian

Windows Authentication
I have a website which is windows authenticated.
now i want something more on this application.<

pop3 and fsockopen
So I am able to connect to the pop3 server, log in, and check how many messages there are. I am hav

RadioButtonList data selection
view plaincopy to clipboardprint?

SAP Project Module
I have seen in the SAP Project Module,plan cost and budget are not equal and even difference is sign

need help in update query
hi
i have a dynamic form. i need help in how can i use update query when values from dynamic for

array_combine() error
getting an "Warning: array_combine() [function.array-combine]: Both parameters should have an e

Multiple submit forms inside a mysql array page
Hi all,

Im having trouble to get the beneath script to work the thing i can't seem to get wor

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