Re: Character Array
| From: | Michal Dvoracek | Date: | Thu, 11 Jul 2002 12:08:35 +0000 |
| Subject: | Re: Character Array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-107106@lists.php.net to get a copy of this message | ||
Hello,
IMHO string is array of characters
so is possible:
$str = 'string';
for ($i = 0; $ < count($str); $i++)
echo $str[$i];
Regards,
Michal Dvoracek michal.dvoracek@capitol.cz
Capitol Internet Publisher, Korunovacni 6, 170 00 Prague 7, Czech Republic
tel.: ++420 2 3337 1117, fax: ++420 2 3337 1112