I come to you to find a solution to my problem:
I have a flat string like this:
$chaine = "519637824467582931832419576721894365346125789985376412698243157273951648154768293";
I want to convert this dimensional array chain, this format here:
$tab = [
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
];
I had an initial response with $ grille_splited = str_split ($ string, 9);
I get a table:
$tab = [
[000000000],
[000000000],
[000000000],
[000000000],
[000000000],
[000000000],
[000000000],
[000000000],
[000000000],
];
I'm missing a Dimension I believe?
For information: this question aims to use a Solver Sudoku (Sudoku Projet)
*result of a google translate
Edit : Sorry Guy's and Thx for your tips ! :)