lice200 Posted April 29, 2006 Share Posted April 29, 2006 Hello, I am currently trying to find a way to limit the max characters shown not the max characters entered. example:Hello my name is lice, I am trying to write a script for my website that will allow me to set the max characters shown on the main page with a link to the full article.This would be shown on a main pageHello my name is lice... more <LinkCan you please push me in the right direction to where I could find something that will show me how todo this. Thanks-kick Quote Link to comment Share on other sites More sharing options...
cujo Posted April 30, 2006 Share Posted April 30, 2006 Try this:[code]print substr($thestring, 0, $numchars) . "..."[/code]Where numchars is the number of characters you want to limit the string to. Quote Link to comment Share on other sites More sharing options...
lice200 Posted April 30, 2006 Author Share Posted April 30, 2006 Thanks man Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.