Hi people, i wanna know from you if this is the way to complete a filed with zeros "0"...
if i type 01 it completes to 0001
function zero4($campo) {
if(strlen($campo) == 4) {
$status = "ok";
}else{
while(strlen($campo) < 4) {
$campo = 0 . $campo;
}
}
}
what do you think?
--------------------------------------------------------------------------------
Equipe Pratic Sistemas
Rodrigo Corr�a
Fone: (14) 441-1700
[EMAIL PROTECTED]
[EMAIL PROTECTED]
