Hello, my question is probably extremely trivial, but I couldn't find it on the guidebook. So I would be grateful for your help.
I have a very long string, of more than 100,000 characters (lets say 100,400 characters). I want to loop through that string, each time saving only chunks of 1000 characters. So for example- for the first iteration $temp will get characters 1-1000, second iteration $temp will get 1001-2000, and so on, then last iteration $temp will get 100,001-100,400.
Thank you very much for any suggestion.