I am trying to read the data with $_POST which has been sent through a form. the form sends the data in octal format. this is part of the form:
<input type="hidden" name="chap-challenge" value="\314\130\024\000\350\025"
the problem is that,
echo $_POST['chap-challenge'];
would give me the literal string:
\314\135\024\000\354\025
which is not the same as
echo "\314\135\024\000\354\025";
how can i somehow convert that string to a double-quoted one so that it could understand they are octal values?
You can evaluate it as php expression, but it lacks in security – example.
Edit:
Also you can parse it for your own – example:
Edit:
To remove first item from array use: array_shift function.