Here is my code:
$today = date('Y-m-d');
for ($i = 1; $i <= 10; $i ++){
$var_b[$i] = date('Y-m-d', strtotime('-' . $i .' day', strtotime($today)));
$var2_b[$i]_name = date('d', strtotime($var_b[$i]));
Error message:
Parse error: syntax error, unexpected T_STRING in XXX\index.php on line XX
EDIT:
I put the curly brackets, the error message line on this one:
$var2_b[$i] = date('d', strtotime($var_b[$i]));