Hi. I have a little problem, and I was hoping someone can point me in the right direction, cause I seem to have hit a dead end. As an example, we put forth the following code: if ($_SESSION['language'] == "english") { $lang = "_en"; } elseif ($_SESSION['language'] == "norwegian") { $lang = "_no"; } else { $lang = '_no'; } $array_en = ("january","february","march","april","may","june"); $array_no = ("januar","februar","mars","april","mai","juni"); //months in arrays, namely in english and norwegian //then we define: define ("__MONTHS_ALPHA",serialize($array_SOMETHING)); PHP: What I would like is a way to use the $lang-variable to add to the $array-variable used in the serialize-statement. Eg. if the $lang-variable is "_no" I would like the $array-variable to turn into $array_no and get the values used in the $array_no-variable which is shown above. Anyone? My brain is hurting right now
$array_months['_en'] = ("january","february","march","april","may","june"); $array_months['_no'] = ("januar","februar","mars","april","mai","juni"); //months in arrays, namely in english and norwegian //then we define: define ("__MONTHS_ALPHA",serialize($array_months[$lang])); PHP: That should work i think...