Can any one give me a hint about the syntax I can use to create this variable?
The error output I'm gettting is: Unexpected "="
$rarea[$i] . "_specs" = implode(",", $_SESSION["res_" . $rarea[$i]]);
Background: Depending on the user's selections $rarea[$i] could represent any one of 7 different strings, ie. "black", "white", "yellow", ...
The session variable is obviously from a prior page. It is an array of strings with the res prefix (category) and $rarea[$i] suffix (subcategory).
$rarea[$i]specs will be fed into a MySQL database.
I'm not really sure how to phrase this question so if you have any suggestions or can point me towards another related thread, I would appreciate it. Thanks.