cliftonbazaar Posted April 19, 2009 Share Posted April 19, 2009 I can't seem to get this right $player['".$adventure['name']."'] I need this as part of an IF statement. I have tried this piece of code with about 6 different variations but I can't get it too work. I know this is the error because if I put the number '1' in its place the code works. Link to comment https://forums.phpfreaks.com/topic/154734-solved-putting-a-variable-into-another-variable/ Share on other sites More sharing options...
Pawn Posted April 19, 2009 Share Posted April 19, 2009 What do you mean by "into"? What do you want that to produce? Link to comment https://forums.phpfreaks.com/topic/154734-solved-putting-a-variable-into-another-variable/#findComment-813690 Share on other sites More sharing options...
FaT3oYCG Posted April 19, 2009 Share Posted April 19, 2009 maybe your overcomplicating things a little $player[$adventure['name']] Link to comment https://forums.phpfreaks.com/topic/154734-solved-putting-a-variable-into-another-variable/#findComment-813692 Share on other sites More sharing options...
cliftonbazaar Posted April 19, 2009 Author Share Posted April 19, 2009 Errrrr ... yep, I've overcomplicated things Now it works. I'm used to ASP language which was a lot more complicated. Thanks for that FaT Link to comment https://forums.phpfreaks.com/topic/154734-solved-putting-a-variable-into-another-variable/#findComment-813693 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.