11-18-2008, 06:49 AM
|
#8 (permalink)
|
|
The Addict
Join Date: Apr 2008
Posts: 200
Thanks: 18
|
in your code maybe you can do something like that using the concatenation operator.
Code:
for($i=0;$i<=100;$i++) {
$i = $_POST['something_'.'$i'];
}
i haven't tested it yet, but for sure it goes something like that.
And also in declaring variables, as far as i know, im only using these type of methods.
Code:
$my_variable = 'something';
$_some = 'something';
And just making another variable for other uses.
maybe for some reasons you can declare variable like this.
Code:
$cnt = 'something';
$var1.'$cnt' = 'something';
dunno, not quite sure of it if it really works coz i havn't tested it since i learn php.
Maybe it is possible. :)
All the best,
t3st
|
|
|
|