Reply to Re: [PHP] preg_slipt

Your name:

Reply:


Posted by David Grant on 11/29/05 16:14

Hi Dan,

Try:

$a = split("\n", chunk_split('1234567890', 2), 5);

php.net/chunk_split
php.net/split

Cheers,

David Grant

Sichta Daniel wrote:
> Hi all !!!
>
> I have string like this "1234567890"
>
> I need to split this into array like this
> a[0] = "12"
> a[1] = "34"
> a[2] = "56"
> a[3] = "78"
> a[4] = "90"
>
> I know that for this is preg_split, but I don't know the string patern
> for split.
> Thank you in advance !!
>
>
> Dan
>
>
>

[Back to original 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

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