for ($i = 0; $i <= 86; $i++){
if (isset($_POST["variable_$i"]))
${'variable'.$i} = $_POST["variable_$i"];
}
See this question to learn about Dynamic Variable names.
EDIT: Added the isset command. isset()
checks whether a variable is already declared or not