V
V
Vyacheslav Lebedev2014-04-17 21:00:46
PHP
Vyacheslav Lebedev, 2014-04-17 21:00:46

Is it possible to edit the $_POST array?

For example, is it possible to perform such actions with this array?

unset($_POST[ 'val1' ]);
$_POST[ 'val1' ] = 'test';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
metnee, 2014-04-17
@slavikse

Yes. Anything, as with a regular variable. At least make a string out of it:

$_POST = "asd";
echo $_POST; // выдаст "asd"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question