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

php and downloading
I want to use a php script to create two files. Then I want it to redirect (or whatever) to have tho

ereg_replace()
Basically what i need to do is

$title = "This Suck's"

$striped = ereg_repl

What do you call the "token" thing?
You know how some sites have links that run on tokens? Tokens are links that only stay alive for a c

What is SAP Avatar ?
Hi All,

This G.Satish , my boss asked me to explore on SAP Avatar. I searced in internet

Login logout link help
Hi all,

Im new to php and Im having trouble creating a login/logout link for my page that dis

Gantt Chart Tool
Does anyone know of a good free gantt chart creator tool

Thanks

how to hide input fields on selection screen using variant attribute
Hello all,

I want to know how to hide input fields on selection screen using variant attr

radio button reamains checked
Hello i'm trying to keep the state off my radio buttons so it shows which ones where clicked after t

login from external site
Hi my new experience begins, Now what i am trying to do is i make three pages, login.php logout.php

SQL Query/echo not working
Hey all,

I'm trying to run (what I thought) was a simple operation and it isn't working. I h

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