You are here: Re: break string into an array « PHP Language « IT news, forums, messages
Re: break string into an array

Posted by Exyle on 11/11/46 11:20

Geoff Berrow wrote:
> I noticed that Message-ID: <42c8734a$1_1@spool9-west.superfeed.net> from
> Exyle contained the following:
>
>
>>$string = "Hello";
>>
>>for($i = 0; $i < strlen($string); $i++) {
>> $array[$i] = substr($string, $i, 1);
>>}
>
>
> <fx: smacks forehead> Of course, that's much easier that using
> $string{n}
LOL, no, thats why I was saying thank you. I found a way on my own but
yours is quite a bit easier for my purposes.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация