View Single Post
Old 11-18-2008, 06:49 AM   #8 (permalink)
zxt3st
The Addict
 
zxt3st's Avatar
 
Join Date: Apr 2008
Posts: 200
Thanks: 18
zxt3st is on a distinguished road
Default

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
zxt3st is offline  
Reply With Quote