Well I'm having an issue where php itself has to create the variable name, I've used this feature several times. The problem I am now trying to use is in an array, as follows:
// Cria o nome da variável
$tabela = "tabela1";
// Cria o array
$$tabela[1] = array(
"valor" => $valor
);
Well, the code had to create a variable with the name $tabela1
and put the array in it, but it is returning this error:
Notice: Uninitialized string offset: 3 in teste.php on line 3
Does anyone know what it can be?