Re: syntax help
| From: | John Kaspar | Date: | Fri, 13 Feb 2004 21:18:10 +0000 |
| Subject: | Re: syntax help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-177649@lists.php.net to get a copy of this message | ||
If you want to actually want the variables $flyertotal, $emailtotal, and $phonetotal, use the line:
${$array[0]."total"} = $row[0];
But as you defined $array, that will actually create the variables $Flyertotal, $Emailtotal, and $Phonetotal (note the caps).
On 2/13/2004 6:10 AM, Bob pilly wrote:
$array[$i].total=$row[0];<-- problem hereso for the above code i would like to create three variable $flyertotal,$emailtotal & $phonetotal