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

unoconv doc convert to pdf code prob
PHP/5.3.1

Hi. I am trying to use this code to convert docs to .pdf utilizing unoconv. Howe

Most basic form question ever?
Hello,

I want to use this snippet to make sure the fields in a form are ok before processing

SELECT * FROM users WHERE Users are not in Blocked
How do I select all users from users table where there users_id is not stored in the block table

animation progress while uploading files?
Hello, i have some website form to upload few files to server. i want to put some gif animation whi

php/mysql problem
Hey all,

Problem: im trying to setup a shop where people can use a drop-down list to select t

While Problem
i am having a problem with a while statement here is the code
Code: [Select]<?php
sess

split string
Hi all

i have some names (imploded by comma):
Code: toronto,paris,madrid
Now, i would

present value of sequence?
Hi

Please help me to find out the present value of sequence?

Thanks

SAP Management Console is blank
Dear All ,

I am facing problem in my des sever suddely in SAP Management Console is blank and

How to show a complete textarea ??
I enter Client Case Notes notes in a textarea field on a PHP form. The field is 5 rows deep and 70 c

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