I need to make a key name from a array a reference to a different variable.
Like this:
$keys = array('name' => 'abc');
$arr[&$keys['name']] = array();
But it doesn’t work:(
is there any solution?
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.
Leave the & away and ensure that $arr is set to an array before: