cliftonbazaar Posted January 16, 2010 Share Posted January 16, 2010 The following code doesn't give back the data I want $playerArray.$match['activePlayer'][26] So what this means is that if player 3 is active then the data I want is $playerArray3[26]. I have also tried {$playerArray.$match['activePlayer']}[26] and ${$playerArray.$match['activePlayer']}[26] but I can't get it right :'( Link to comment https://forums.phpfreaks.com/topic/188669-getting-a-variable/ Share on other sites More sharing options...
Ayon Posted January 16, 2010 Share Posted January 16, 2010 wild guess $playerArray.{$match['activePlayer']}[26] Link to comment https://forums.phpfreaks.com/topic/188669-getting-a-variable/#findComment-996023 Share on other sites More sharing options...
trq Posted January 16, 2010 Share Posted January 16, 2010 Sorry, that makes little sense. Can you describe your problem and at least give us a clue as to what your data (arrays) looks like. Link to comment https://forums.phpfreaks.com/topic/188669-getting-a-variable/#findComment-996024 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.