Re: Re: foreach() for strings
| From: | Stas Malyshev | Date: | Mon, 20 Jun 2011 17:06:50 +0000 |
| Subject: | Re: Re: foreach() for strings | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-53433@lists.php.net to get a copy of this message | ||
Hi!
On 6/20/11 9:57 AM, Todd Ruth wrote:
Iterators are nice. Having a "text_string_to_array" function would also be fine. For example: $s = 'hello'; foreach (text_string_to_array($s) as $x) {text_to_array($s) == str_split($s, 1) -- Stanislav Malyshev, Software Architect SugarCRM: http://www.sugarcrm.com/ (408)454-6900 ext. 227var_dump($x);}