RE: [PHP] First Character of a string.

From: Date: Sun, 08 Oct 2000 18:19:05 +0000
Subject: RE: [PHP] First Character of a string.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-19104@lists.php.net to get a copy of this message
> <? > $firstname ="Brian"; > $firstinitial=" > ?> > here i want to parse out just the B from Brian with out hard coding it in > <? > "; > echo $firstname,"<BR>"; > echo $firstinitial,"<BR>"; > ?> $firstinitial= substr($firstname,1,1); James

« previous php.general (#19104) next »