RE: [PHP-DB] Function help....

From: Date: Thu, 03 Oct 2002 17:36:17 +0000
Subject: RE: [PHP-DB] Function help....
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-22206@lists.php.net to get a copy of this message
Why don't you just try it and see? Aaron -----Original Message----- From: Rodrigo [mailto:rodrigo@praticsistemas.com.br] Sent: Thursday, October 03, 2002 1:41 PM To: PHP Subject: [PHP-DB] Function help.... 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 suporte@praticsistemas.com.br rodrigo@praticsistemas.com.br

« previous php.db (#22206) next »