Re: string into array
| From: | Matt Greer | Date: | Thu, 27 Sep 2001 22:51:39 +0000 |
| Subject: | Re: string into array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69064@lists.php.net to get a copy of this message | ||
on 9/26/01 8:45 PM, randy at programmer@jennybug.com wrote:
> I need to take a string and read it into an array character by character
> here is an example
It's already been done for you.
if
$str = "this is a string";
then
$str[0] already equals "t";
strings essentially are character arrays.
Matt
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com