php to show only first 10 characters of string?
Posted: Mon Feb 26, 2007 11:17 pm
Hi Guys,
how do I get php to show only first 10 characters of string?
Thanks
how do I get php to show only first 10 characters of string?
Thanks
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$first10 = substr($str, 0, 10);