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

How to form a xml form table with a single sql statement..?
Hi everyone,
I don't know if this is going to be a duplicate thread but i couldn't

Why is this query failing?
Why is this not working?
$query = "SELECT * FROM `users` WHERE `userid` = " . $USERID

SQL query not working well
Hi,
I made a small table with 5 rows and want to make them an sql consult using rownum

retrieving images from mysql database using php
So I've been trying to figure out how to store images in a mysql database, and as far as i can tell

mysql select query problem
how can i select multiple fields from multiple table in one query like

i have table name t1 a

Is there a quick way to do this?
Hi all,

I need to create a mysql table from php that goes a little something like this

Automatic Webpage ??
I have a page www.mysite.com/test.php with a
<form>
<textarea name=&q

Dump with added_funcion cl_salv_table
Hi there, I'm having some troubles adding a self defined function to an ALV in fullscreen. The thing

Move array index to end
Hey guys,
Quick question:

I have an array that looks like this:
Code: [Select]$var =

Email/MMS to Site
Hey guys. I'm looking for a way for a user to upload images and/or text via their cell phones. It

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