First Character of a string.
| From: | Brian C. Doyle | Date: | Sun, 08 Oct 2000 18:05:44 +0000 |
| Subject: | First Character of a string. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-19100@lists.php.net to get a copy of this message | ||
Hello All,
How do I get just the first letter of a string.
example
<?
$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>";
?>