I am having trouble getting data in post request php.
In the frontend i am sending a post request value as 080
but when i save the data or show the data in backend it only shows 80.
I tried using following methods but it all returns same:
$value = (string)$_POST["value"];
$value = strval($_POST["value"]);
$value = "{$_POST["value"]}";
$value = $_POST["value"] . "";
But when i tried adding some value in the string following way it works
$value = "Hello: {$_POST["value"]}" <– in this scenario it works perfectly fine.
Returning as Hello: 081
When i use var_dump($_POST["value"]) it returns as: string(3) "080"
How can i solve this issue?