I have an associative array called $strings. Within that I have $string[status_1], $string[status_2], $string[status_3] etc...
Then I have another associative array with data from my database containing numbers and based on that number I would like to echo out the different statuses in the strings array.
Now what I thought I´d do is this:
$strings[status_$row[prospect_status]]
But that of course doesn´t work. Can anyone please help me out by telling me how this could be done ?
Adding more arrays or variables is not an option.
Using a if or switch would of course do the trick but I would prefer to solve it in a simillar fashion to my failed attempt =)