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

Is this Safe or Unsafe?
Hi i made a few pages with lots of peoples help now i just want to know if they are safe or not can

Estimations and Effort
HI Gurus,

Would like to know whether SAP have a provision for carrying out the Project es

a multi dimensional array with for each
hi, I have been asked to write an array, I have Zone 2,3,4,5,6,7,8 each zone has 3 sections of weigh

Help with search.php
Hello All

I need the search engine on a site I am building at the moment to display the searc

how to validate date using javascript
I need to validate date in textbox using javascript..
The date is must be not greater than TODAY

Save username into DB
OkaY so I got my blog to actually save the posts and whatever, all I need now is for it to keep the

Hyperlink is adding an extra gap to variable
Hi, here's my problem..

I have a php generated page with a hyperlink which opens in a new win

some questions
Hello,

I am looking for the answers for following questions:

1) Does PHP support overl

How to display objects in a row
I have 7 codes that i want to display in a row one next to another.
The first is {$ads->ad

SQl num_rows problem
when i try to count rows from an SQL select i get an warning

Code: [Select]$countviews = mysq

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