This function can be used to convert a string into a path array.
It will also validate already existing path arrays.
By default a period (.) is used to separate path parts like: "my.array.path" => ["my","array","path"].
If you require another separator you can set another one by using the separator parameter.
In most circumstances it will make more sense just to escape a separator, tho. Do that by using a backslash like:
"my\.array.path" => ["my.array", "path"].
This function can be used to convert a string into a path array. It will also validate already existing path arrays.
By default a period (.) is used to separate path parts like: "my.array.path" => ["my","array","path"]. If you require another separator you can set another one by using the separator parameter. In most circumstances it will make more sense just to escape a separator, tho. Do that by using a backslash like: "my\.array.path" => ["my.array", "path"].