Re: Read the first letter

From: Date: Thu, 29 Jun 2000 21:19:42 +0000
Subject: Re: Read the first letter
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3895@lists.php.net to get a copy of this message
$string = "Hello Peter"; echo $string[0]; - - - - - - - - - - - - - - - - - - - - - - - - - - - - Will output H - - - - - - - - - - - - - - - - - - - - - - - - - - - - echo $string[1]; Will output e - - - - - - - - - - - - - - - - - - - - - - - - - - - - Strings are numeric indexed arrays. -Rob Z. ----- Original Message ----- From: "Peter Benoit" <pbenoit@triton-network.com> To: <php-general@lists.php.net> Sent: Thursday, June 29, 2000 4:15 PM Subject: [PHP] Read the first letter > Might be simple, but I can't seem to figure out how to read the first letter > of a string. > > TIA, > Peter > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#3895) next »