How do I display the first 5 characters of a string?
$string=abcdefghijklmnopqrstuvwxyz;
my desired output is
abcde
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sun, 2008-10-05 at 14:52 -0400, Ron Piggott wrote:
How do I display the first 5 characters of a string?
$string=abcdefghijklmnopqrstuvwxyz;
my desired output is
abcde
substr($string, 0, 5);
Ash
www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To
2 matches
Mail list logo