I am completely stuck in how to start parsing these kind of files in PHP. These are some sort of arrays with variable amount of sub-arrays. https://developer.valvesoftware.com/w
There an online one I found. http://rossengeorgiev.github.io/vdf-parser/
The repo has a js and python implementations, it shouldn't be too hard to port them to PHP.