Okay I am attempting to redo my site for the moment and would like to have a description section on my news articles instead of having them each show the whole story. I have inserted a description place int eh mysql database however am having trouble comming up with a script that will copy a variable to a certain length to another variable. I want something like a function which would work great.
Something like this:
CODE
$testString='This is a test string of 39 characters.';
$testString2='';
//Set $testString2 to the value of testString but only upto character 10
$testString2='This is a ';
I have only found ways to count the number of characters in a variable at this point, but would liek to be able to set a certain number of characters allowed into a variable. Hopefully someone will be able to help.
THanks,
BetaWar