I was working on a function, that ends up adding a massive amounts of dimensions to an array, and I was wondering, is it possible to reach a limit on how many dimensions can be added, and if so, what is that limit in PHP?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No, I don’t believe there’s a limit to the depth of access (save for how much RAM you’ve got).
Each level adds at least one pointer indirection, though, so the speed of retrieving elements will suffer as you get deeper.
I’d be willing to bet dollars to donuts there’s an easier way to store and manipulate the data you think you need this super-array for.