Hamlets666 Posted December 7, 2006 Share Posted December 7, 2006 I have a array "world" and i`m tired of wroting $world['***'], so I was thinking could I get varuables look like this $***, using foreach? Quote Link to comment Share on other sites More sharing options...
taith Posted December 7, 2006 Share Posted December 7, 2006 [code]<?foreach($world as $k=>$v) $$k=$v;?>[/code]and there ya go... your array just turned into a whole wack of variables... Quote Link to comment Share on other sites More sharing options...
Hamlets666 Posted December 7, 2006 Author Share Posted December 7, 2006 Great, thanks Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.