1. Should work fine. example:
Then try to //echo $hget(test,item)... it will echo 'data'.
You'll have to specify either .item or .data property only when the $hget(table,N) method is used.
For example, to get the first item name, you'd use: //echo $hget(test,1).item, and to get its content: //echo $hget(test,1).data.
-
2. As you thought, local variables never conflict with each other and free themselves when the routine ends.