Posted by Janwillem Borleffs on 01/11/07 16:39
blackberryoctopus wrote:
> The data coming in is named as follows data1, data2, data3, ...
> data40. So I need the php variables to be named in the same way.
> Whats the syntax here? Thanks for any help.
>
${"data$i"} = receivedData+$i;
But it would make more sense to create an array:
$data = array();
for ( ... ){
$data[] = receivedData+$i;
}
JW
[Back to original message]
|