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

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -