Im a noob to php and I don't understand why the leading character in my string, which is zero is being removed after I pass it through a url. Like so: http://sample.com/Sample/employee_select.php?emp=03
When I use $_GET to get the value it returns 3 instead of 03. How do i keep the leading zero?
this is NOT a duplicate of How to keep leading zeros in PHP integer.
MY CODE
<?php
$emp = $_GET['emp'];
$tdat = $_GET['tdt'];
echo $emp; //returns "3" instead of "03"
?>