It seems I do something wrong here, but I don't understand how and why.
shows something like "blablabla" = content of phrase with the name in
shows 99
Cant echo this, must print_r this;
When I print_r this, get a universe of an array.
How is this possible, please?
Code:
$descriptionPhrase = "phrasename123";
echo \XF::phrase($descriptionPhrase);
shows something like "blablabla" = content of phrase with the name in
$descriptionPhrase
Code:
$upgradeDescription[$userUpgradeId]['description'] = "99";
Code:
echo $upgradeDescription[$userUpgradeId]['description']
shows 99
Code:
$upgradeDescription[$userUpgradeId]['description'] = \XF::phrase($descriptionPhrase);
When I print_r this, get a universe of an array.
How is this possible, please?
Last edited: