If a user complete's a form with one of the fields being their name, how can I split this string down to only the first 3 chars?
say the word was hello, I would want to put hel001 into my database, but how do I only use the first 3 chars?
$whatever = substr($name,0,3).'001';
http://www.php.net/manual/en/function.substr.php
paul http://xhawk.net