php - How combine one string and varialbe for new variable -
$ i18ncoches = "coches"; $ I18nmotos = "motos";
Hi I'm trying to create a variable from a foreach, a string and a variable combination
$ apartados = array ('coches', 'motes' 'Now', 'Avian'); Forex Currency (Alendas $ as Dollar) {echo $ i18n $ Key; }
but the expected result is to be omitted
$ i18ncoches $ i18nmotos
but get the following notice: Irreversible variable: i18n
Cocoa motors, etc.,
You can do it like this:
& lt ;? Php $ i18ncoches = "coches"; $ I18nmotos = "motos"; $ Apartados = array ('coches', 'motos', 'naves', 'avion'); Foreign currency ($ Eleedas $ key as $) {// if (isset ($ {'i18n. $ Key})) // You will need to check this $ {' i18n ' $ Key}; }? & Gt;
Comments
Post a Comment