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.

thanks

No comments posted yet

Your Answer:

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

Help with lottery style system?
I'm working on a currency system for forums and it is going to have a type of lottery system built i

how to get IP address?
hey guys,

i have this code which is supposed to get me the IP address of my site visitors:

IP question
ive got 2 ip addresses both global from same user how would i detect if they are local to each other

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

GET * FROM _____ Except?
I have a site that is for stock photography.

This section of the code calls images to display

Unable to customise toolbar in FCK
generating random codes
Hi guys n gals,

I have a requirement to generate 250,000 unique codes...

These codes a

php code generators
All

Whilst enjoying learning a new language i have come accross a number of free code generat

simple ping code
been searchin the site/web and found code thats simple but doesnt work.

I have a personal we

Reduce redundancies in switch functions?
Hello all! I somewhat new to PHP, and was wondering if anyone could give some suggestions on a swit

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