I have a form which gets submitted to a PHP script to process the $_POST values some simple text fields but mostly arrays. I have noticed that the very last array element is missing and couldn't figure out why. Then I decided to print out file_get_contents('php://input')
and it contains the missing array element. Just to be clear at the very beginning of the post script (before anything happens) I print out file_get_contents('php://input')
and $_POST
values and the $_POST
is missing the very last element of the array which is part of the php://input
. The array elements are unique so nothing gets overwritten.
Does anyone have any idea why this is happening? PHP version is 5.5