You have nested output statements...
First the:
print_r($_POST['toBox']);
will print the array in human readable format. (I'm assuming this is what you are after).
Second the:
echo print_r($_POST['toBox']);
The echo is printing the boolean value returned by the "print_r" statement.
Solution, remove the echo from the beginning and the 1 at the end should disappear.
Cheers! 😃