If I have:
<?php
$params=[
[
'string'
]
];
//params get from $this->params()->fromPost();
$abc='params[0][0]';//$abc dynamiccly
I cannot access $params[0]
How to get string element?
I try to use
echo $$abc;
But
Notice: Undefined variable params[0][]
$abcstring to get separately variable name and index value (e.g. as roberto06 showed in his answer), but that's not efficient to do so much work only to get variable's value. I would suggest (if possible) to change your data flow design which is in this case the incoming value from POST.