[PHP] idiotic question

2001-07-27 Thread Jerry Lake

for the life of me I can't remember
how to convert a string to just the first
letter of itself i.e. $string = test
...a function
$string_first = t

I must be thinking in circles today.

Jerry Lake
Interface Engineering Technician
Europa Communications - http://www.europa.com
Pacifier Online - http://www.pacifier.com



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP] idiotic question

2001-07-27 Thread mike cullerton

on 7/27/01 3:46 PM, Jerry Lake at [EMAIL PROTECTED] wrote:

 for the life of me I can't remember
 how to convert a string to just the first
 letter of itself i.e. $string = test
 ...a function
 $string_first = t
 

$word = substr($word,0,1);

 -- mike cullerton



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]