Basically, what I want is like this creating variable names from an array list
But it’s the other way around, instead of creating normal variables, I want to create arrays from the variable values
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.
If you want to make an array which maps variable names to their values, use
compact(), passing variable names as strings:If all you want is an array containing the values of your variables, just make a normal array using
array()and toss your variables in: