Looking at individual chars of string
| From: | Bix | Date: | Mon, 17 Mar 2003 19:04:13 +0000 |
| Subject: | Looking at individual chars of string | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-140000@lists.php.net to get a copy of this message | ||
Is it possible to look at individual chars of a string?
eg: $str = "12345";
print $str_1 // Gives "1"
print $str_2 // Gives "2"
Doing this with an array would be handy, maybe using explode or preg_split?
Thanks in advance!