You are looking for variable variables in PHP:
$x = 7;
$var = 'item_name' . $x;
$$var = $_POST['item_name'. $x];
and then you get $item_name7
with value you want. Also trailing concatenation of .''
in your right side of assignment is useless