--- with leading zeros is different to without losing ... ---
I have to create a path made by values. One value is par example a number with the value "00123345". At the end of the process he will give a value "123345". But the value has to be "00123345" instead of "123345".
The number has not a fixed length. The number who will be given, has to be used as is given. "123" results in "123" and "00123345" results in "00123345" and "0125" results in "0125".
What do I wrong?
Input Number = "00123345";
$Code = $_GET("Number");
public function __construct($code)
{
$this->Code = $code;
}
private function GetLocalDirectory()
{
$Response = "";
if ($this->Code != "")
{
$Response = ... . "/" . $this->Code . "/" ...;
}
return $Response;
}
$path = $this->GetDirLevel($path, $this->Code);