Hiya
I was wondering how I could make a variable called
$maxlen2, $maxlen4, etc.. with the same value as the digit in their name represents?
I was able to do this by having a loop like this
But I would like to make this without having to use [] in my variable, because now I have to write $maxlen[3] instead of $maxlen3.
I was wondering how I could make a variable called
$maxlen2, $maxlen4, etc.. with the same value as the digit in their name represents?
I was able to do this by having a loop like this
Code:
for($Lengder=1; $Lengder<=300; $Lengder++)
{
$maxLen[$Lengder]=$Lengder;
}
Comment