I saw a array2table function, and want to improve it by making give table a head which show a name.
And the problem came
1. it is a function, how could it get a name of an variable
I say, personally with out much proof...
$name = somefunc($varname);
$name will be containing the varable name(string)'$varname'
and I think that somefunc() is impossible to be written
2. so I guess just make array2table get one more paramater which includes the name of the function. but it encounter another problem. which is when the function found array is muliti dementional, it will use the array2table function again on the 2nd level or more level array so it can explore all depth array and turn it into table
so... that time I need that array which under the main array's name(like... $cool['hot'] I need ['hot'])
anyone got a way to do that?