I have a complicated problem to solve, there are 3 types of variables that receive data via post example:
$mes = "08";
$mes = "10";
$mes = "12";
In the case of 3 different string types, I need 0 to be removed when it is the first occurrence in the string (for the initial character) I have already tried in several ways until it explodes in the data entry, but this affects all the data of the input and it would not be necessary because this validation should only occur from number 01 to 09 leaving only unit 1 to 9. How can I do this?