How can I use PHP to only print the first 100 chars of a really long string?
I was thinking of using eregi but is there a shorter way?
echo substr($reallongstring, 0, 100);
Just a note, if you ever need to find out if a string function exists for something you're wanting to do, check here first. Same with array, file, and other types of functions.
Cgraz