Toon posts:

[php]

Pagina: 1
Acties:
  • 30 views sinds 30-01-2008

Verwijderd

Topicstarter
ik wil van 0 -> 60 tellen

maar ik krijg steeds 0, 1, 2, 3, 4, 5 enz

ik wil juist 00, 01 ,02 ,03 ,04

wie kan mij even snel helpen

THNX

PHP:
1
2
3
4
for($k="0"; $k<0+60; $k++)
    { 
                 print"$k";
                 }


sorry voor de titel ik zag het te laat

[ Voor 15% gewijzigd door Verwijderd op 04-12-2002 22:55 ]


Verwijderd

euh

printf( "%02d", $k );

is dat nou echt zo moeilijk om te zoeken

php.net/printf

[ Voor 10% gewijzigd door Verwijderd op 04-12-2002 22:58 . Reden: tikfout %02d ]


Verwijderd

Topicstarter
tja je moet er maar op komen

Verwijderd

Of beter zoeken (sorry niet lullig bedoeld)

  • drm
  • Registratie: Februari 2001
  • Laatst online: 09-06-2025

drm

f0pc0dert

:Z

* drm zocht op in NE-EN woordenboek:
"snel helpen"
- Quick fix

Wat stond daar ook alweer over in de quickstart? :/

Music is the pleasure the human mind experiences from counting without being aware that it is counting
~ Gottfried Leibniz

Pagina: 1

Dit topic is gesloten.