how can i merge two arrays (one with string => value pairs and another with int => value pairs) while keeping the string/int keys? none of them will ever overlap (because one has only strings and the other has only integers).
here is my current code (which doesn't work, because array_merge is reindexing the array with integer keys):
// get all id vars by combining the static and dynamic
$staticIdentifications = array(
Users::userID => "USERID",
Users::username => "USERNAME"
);
// get the dynamic vars, formatted: varID => varName
$companyVarIdentifications = CompanyVars::getIdentificationVarsFriendly($_SESSION['companyID']);
// merge the static and dynamic vars (*** BUT KEEP THE INT INDICES ***)
$idVars = array_merge($staticIdentifications, $companyVarIdentifications);
thanks!