hi there..
I have this code in a chat script:
$alluser = array("joe blogs", "john smith", "tiger woods", "god");
$ItemDat = $alluser;
for ($j=0; $j<count($ItemDat); $j++) {
${"ItemData$j"} = $ItemDat[$j];
}
$Items = $alluser;
for ($j=0; $j<count($Items); $j++) {
${"Item$j"} = $Items[$j];
}
$alluser represents all the people who are currently on the chat. What i need to be able to do is echo all the variable names and the value of the variable this bit of script makes.. and i dont know how its done.
for example.. the script creates
$ItemData1 = john smith;
I would like to echo $ItemData = john smith.
it shouldnt be too hard to do