Hello everyone, I am having an issue with a pretty simple PHP code i was wondering if someone could help me fix, i know it’s wrong.
I have to use an associative array already made named $salary[] which contains the salaries of the employees and return the salary of the employee named in the parameter
function getValueByKey($parameter1) {
$salary=$salaries["$parameter1"];
};
I know i don’t have anything returned, the directions say this should be completed in one line of code so I dont understand how that adds up.