PHP: Splitting a string?
#1

Edit: Got it, thanks guys!

---

Hey guys, just a quick question about PHP. What I'd like to do is split a string like this..

Код:
$var = "11711201317192171120131719317112013171941711201317195171120131719";
..into multiple strings, like these: (Inside an array, maybe?)

Код:
1171120131719
2171120131719
3171120131719
4171120131719
5171120131719
The amount of characters between each 'split' is always the same: 13.

How could I accomplish this?
Reply


Messages In This Thread
PHP: Splitting a string? - by Jantjuh - 17.11.2013, 17:38
Re: PHP: Splitting a string? - by Camacorn - 17.11.2013, 17:39
Re: PHP: Splitting a string? - by Djole1337 - 17.11.2013, 17:48
Re: PHP: Splitting a string? - by Jantjuh - 17.11.2013, 17:58

Forum Jump:


Users browsing this thread: 2 Guest(s)