[linux-programlama] Re: Php'de sayi formati

---------

From: Enver ALTIN (ealtin@casdb.com)
Date: Wed 16 Jul 2003 - 10:48:42 EEST

  • Next message: Enver ALTIN: "[linux-programlama] Re: Php'de sayi formati"

    On Wed, 2003-07-16 at 10:38, Alper Oguz wrote:
    > Merhaba,

    Merhaba,

    > PHP'de formda list box'larda tarih ve saatleri döngü ile
    > olusturuyorum (asagida). Ama tabi 1, 2, 3, 4.. seklinde uretilmis
    > oluyor. Bunları 01, 02, 03.. seklinde uretebilir miyiz?
    >
    > for ($say = 1; $say <=31; $say++) {
    > echo("<option value=$say>$say</option>");
    > }

    printf("<option value=%d>%1\$02d</option>", $say);

    -HTH

    -- 
    Enver ALTIN (a.k.a. skyblue)	- Software developer, generic solvent
    http://enver.casdb.com/		- mailto: ealtin at casdb dot com
    http://enver.casdb.com/CV.html	- Just me, myself and I.
    If you only have a hammer, you tend to see every problem as a nail.
    		-- Maslow
    

  • Next message: Enver ALTIN: "[linux-programlama] Re: Php'de sayi formati"

    ---------

    Bu arsiv hypermail 2.1.6 tarafindan uretilmistir.