On Tue, 27 Apr 2004 16:05:32 -0700 (PDT)
"Daniel Clark" <[EMAIL PROTECTED]> wrote:
> $rest = substr("abcdef", 1, 3); // returns "bcd"
>
> http://www.phpbuilder.com/manual/function.substr.php
>
>
> > What PHP function returns just the first letter of a string?
> > - Matt
> >
Or to properly answer the question,
$letter=substr("abc", 0, 1); // returns the first character which is a.
Unless Matt wanted the first letter as opposed to the first character??
George Patterson
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php