Closed abaracedo closed 9 years ago
Thanks a lot, very interesting! Didn't even know that this functions exists! Have you tested this already ? Is it save to use when the array is empty etc. ?
I didn't try because i'm trying to set the project working (having problems) but array_shift returns null if the array is empty or it is not an array.
There's a fail-safe tutorial in the readme and also a one-line installer for Vagrant btw.
He, I'll reject this as array_shift is a writing operation and much slower that simply reading the url params. But thanks anyway!
Well, i just downloaded the project and i looked the code and i saw that to get url params it checks if the values are set, maybe another option to get the params from url is using array_shift: