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

Varible in trigger - refering to correct schema
Hello

Im having some issues with my trigger.
What I want to do is call opon a differ

Calander layout
Hi i know this sounds like a simple question but i cant find the answer to it anywhere i have added

Convert .fdf to .pdf
I currently have a web form that uploads the form data to an .fdf file and emails it.

However

Help a newbee save my job !
Hey guys i am dying here i am new to php and would like for someone to help me with this problem

Weird problem with SELECT command..Help!
Hi!

It seems I'm having a really weird problem with SQL SELECT command....I have table into a

Echoing ASCII code
I have a php page that splits a string into chars and then echoes the ASCII code for each char. I'm

DBCA Templates
Hi all,

I'm working on creating a template for DBCA, but can't find any documentation on the

using variables in another page
I have a test database set up on localhost. I have a form that I can type a name into, hit the butto

values in array being escaped
I would like to submit some values - back to the same form for checking before processing...

problems with contact forms that are only protected against SQL injections
What could be a potential problem with contact forms that are only protected against SQL injections

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