Answer the question
In order to leave comments, you need to log in
How to properly group a php array?
Good afternoon. I sit, racking my brains on how to group such an array:
array(
"/home/fol1/test.txt",
"/home/fol1/Browsers/test2.txt",
"/home/fol2/Browsers/test3.txt",
"/home/fol2/Browsers/ttre/test2.txt"
)
аrrау(
"fol1" => array (
"/home/fol1/test.txt",
"/home/fol1/Browsers/test2.txt"
),
"fol2" => array (
"/home/fol2/Browsers/test3.txt",
"/home/fol2/Browsers/ttre/test2.txt"
)
);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question