there's an array A,which has a variable number of values. I want to convert values of array A to an index of array B.
Language: PHP
Example:
//array A
$a={'a','b','c','d'};
//converted to an index of array B
$b['a']['b']['c']['d']='somevalue';
The problem is that the number of values of array A is flexible.
Is there a way out? Thanks.