Just want the first 10 characters
Posted: Thu May 25, 2006 6:08 pm
How would I select only the first ten characers of a string?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$newString = substr ($str, 0, 10)