[PHP] First 30 characters of a strong

2008-10-05 Thread Ron Piggott
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

Re: [PHP] First 30 characters of a strong

2008-10-05 Thread Ashley Sheridan
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