0

Constants variables are defined as:

define('MENU_HOME', 'Úvod');  //slovak
define('MENU_HOME', 'Home');  //english

QUESTION:

How to output array from:

$menu_items = array ('MENU_HOME', 'MENU_ABOUT', 'MENU_CONTACT');

to

$menu_items = array (MENU_HOME, MENU_ABOUT, MENU_CONTACT);
1
  • 1
    edited to more obvious form Commented Jul 21, 2013 at 9:36

1 Answer 1

1

This define('MENU_HOME', 'Úvod'); is not global variable, but constant. To get its value by name stored in string, you can use constant function.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.