Re: string to array
| From: | Jason Brooke | Date: | Thu, 08 Nov 2001 14:52:35 +0000 |
| Subject: | Re: string to array | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-73879@lists.php.net to get a copy of this message | ||
> <?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