Re: First 30 characters of a strong

From: Date: Sun, 05 Oct 2008 18:59:29 +0000
Subject: Re: First 30 characters of a strong
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-281451@lists.php.net to get a copy of this message
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

« previous php.general (#281451) next »