In PHP you can
$var = 'title';
$$var = 'my new title';
and it works great. But when you try to use it with an array, it does not work and no error messages are reported.
$var = 'title';
$$var['en'] = 'my english title';
$var = 'description';
$$var['en'] = 'my english description';
thanks for the help
[EDIT] If I do
$$var = array();
array_push($$var,'test');
it works and displays
title[0] = 'test';
But I really need a named index: /
source
share