Toon posts:

[PHP] Variabel aantal parameters

Pagina: 1
Acties:

Verwijderd

Topicstarter
Ik heb een variabel aantal parameters die mijn script kunnen binnenkomen (naam1, naam2, naam3, ...)
Nu wil ik deze alledrie afdrukken, maar als het er bijvoorbeeld acht zijn, moet-ie ze alle acht afdrukken.
Wat is een logische manier om dit te doen?

  • ^Mo^
  • Registratie: Januari 2001
  • Laatst online: 04-11-2025

"There are 10 kinds of people in the world, those who understand binary and those who don't" | Werkbak specs


  • Janoz
  • Registratie: Oktober 2000
  • Laatst online: 28-08 12:00

Janoz

Moderator Devschuur®

!litemod

Of arrays gebruiken...

Ken Thompson's famous line from V6 UNIX is equaly applicable to this post:
'You are not expected to understand this'


Verwijderd

Topicstarter
dank u, die had ik nog niet gevonden idd