I’m new. I have an array [1, 0, 0, 0, 0, 2, 4, 0, 0, 0, 0, 0, 0, 0, 5, 6] I want to get a two-dimensional array from it [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0,]] how to do this without regular expressions
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
I’m new. I have an array [1, 0, 0, 0, 0, 2, 4, 0, 0, 0, 0, 0, 0, 0, 5, 6] I want to get a two-dimensional array from it [[0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0,]] how to do this without regular expressions