I have a foreach loop, within which I would like to create x number of unique variables.
E.g. Upon each iteration I'd like to create a new variable like:
$strDisk1 = ...
$strDisk2 = ...
$strDisk3 = ...
I have tried the following but this does not work:
<?php
$count=1;
foreach ($disk as $device)
{
$strDisk.$count = "<dataset seriesName='$device'>";
$count++;
}
?>
Is there something which will enable me to do this?