Very nice solution. Thank you !
Plutarck schrieb:
> If the variable's names will be $Name1, $Name2, etc, then you'd do something
> like this:
>
> for ($i = 1, $i <= $n)
> {
> /* $n will be how many variables you have. So if you have 5 variables, $n
> should equal 5 */
> ${"Name" . $i} = $default
If the variable's names will be $Name1, $Name2, etc, then you'd do something
like this:
for ($i = 1, $i <= $n)
{
/* $n will be how many variables you have. So if you have 5 variables, $n
should equal 5 */
${"Name" . $i} = $default_value;
}
So if $n was 3 and $default_value was 0, you'd have thre
2 matches
Mail list logo