Re: string to array
| From: | pierre-yves | Date: | Thu, 08 Nov 2001 15:40:35 +0000 |
| Subject: | Re: string to array | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73886@lists.php.net to get a copy of this message | ||
I did, thanks,
py
p.s. If I had know that before!!! And I thought I had read the manual enough
;)
----- Original Message -----
From: "Jason Brooke" <jason@qgl.org>
To: "Andrey Hristov" <ahristov@icygen.com>; <php-general@lists.php.net>
Sent: Thursday, November 08, 2001 9:52 AM
Subject: Re: [PHP] string to array
> > <?php
> > $array = explode("", "This is my string");
> > var_dump($array);
> > ?>
>
> Hopefully Pierre will read my email and just treat the string as an array
> then and after possibly trying my example, seeing it didn't work and
> thinking 'oh well, he said probably, not definitely', I'll just go with
the
> treating-string-as-an-array thing instead.
>
> <?
> $string = "This is my string";
> echo $string[2];
> ?>
>
> i
>
>
>
>
> --
> 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
>