}) check before assigning them however, in case
you only get $myvar1, $myvar3, $myvar4 etc. Always program defensively, it
saves hassle in the long run.
Hope that helps
Ross
> -Original Message-
> From: crizz [mailto:[EMAIL PROTECTED]]
> Sent: 25 August 2002 17:21
> To: [E
Crizz
use myvar[] in the form and PHP will generate an array for you
HTH
Rich
-Original Message-
From: crizz [mailto:[EMAIL PROTECTED]]
Sent: 25 August 2002 09:21
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] array way
Can you helpme with that?
I have some variables with names like
Can you helpme with that?
I have some variables with names like: $myvar1, $myvar2, $myvar3... and so
on... and I want to put them in an array. Ofcourse I need a Loop because I
don't know the number of the variables.
It will probably be like that:
$myarray= range(1,NumberOfVars);
$i=1
while ($ i