I need to assign two other variables to a variable.
Basically, I need to do something like this:
$gameName = $jackpot->gameName = $jackpot->MachineName;
echo $gameName;
Both $jackpot->gameName and $jackpot->MachineName return a “text” (a name) from two different parsed XML files.
What’s the correct syntax?
The two methods you can follow based on your requirement.
You can hold your data in an array.
You can concat the two variables and store it in a new variable.