Have a php array from POST data $this->log->write(print_r($array , true));
Array
(
[accept] => */*
[accept-encoding] => gzip, deflate
[signature] => 37df88b6f845c21b1cda84cf3d3b94b0b15759b74f7387ceb0e9c8a6247c211f
[connection] => keep-alive
[content-length] => 610
[user-agent] => python-requests/2.10.0
)
$this->log->write(var_export($array , true).'var_export');
array (
'accept' . "\0" . '' => '*/*',
'accept-encoding' . "\0" . '' => 'gzip, deflate',
'signature' . "\0" . '' => '37df88b6f845c21b1cda84cf3d3b94b0b15759b74f7387ceb0e9c8a6247c211f',
'connection' . "\0" . '' => 'keep-alive',
'content-length' . "\0" . '' => '610',
'user-agent' . "\0" . '' => 'python-requests/2.10.0',
)var_export
The problem that I cannot access the array with $array['signature'];is empty.
Sorry, the question looks like a noob, but it is not. Work with arrays before and without problems. Tried this as well as $array["signature"]; $array->signature;empty. Please, help
source
share