I intend to do this:
echo $.'variable';
as a result of this:
//Solicitamos a la BD todas las id de la tabla categorias
$data = $this->Global_model->get_select_array('idcategoria', 'categoria_tmp', TRUE);
//rastreamos todo el contenido de data para que de ella surja otra consulta
foreach ($data as $key)
{
//Creamos la variable where para definir la busqueda en la BD
$where = array('id_categoria' => $key['idcategoria']);
//Consultamos a la BD para conseguir todas las preguntas
$Preguntas[$key['idcategoria']] = $this->Global_model->get_where('pregunta_tmp', $where, TRUE);
}
//Extraemos las variables otorgadas por $key['idcategoria']
extract($Preguntas);
Now try this:
parse_str($variable); //Pero admite un solo formato
All this with the purpose of interpreting a string as a variable:
<tbody>
<?php foreach ($.'variable' as $key => $value): ?>
<?php endforeach ?>
</tbody>
Then the question is: How can I interpret a string as a variable in php?