Jessica Posted October 5, 2012 Share Posted October 5, 2012 Variable variables would be $$cid; No string needed. That said. IT'S THE WRONG WAY TO DO IT. Put them in an array, or even better a database. And stop using global. Quote Link to comment Share on other sites More sharing options...
Maq Posted October 5, 2012 Share Posted October 5, 2012 (edited) EDIT: Too late ... Edited October 5, 2012 by Maq Quote Link to comment Share on other sites More sharing options...
lovephp Posted October 5, 2012 Author Share Posted October 5, 2012 (edited) i got it and it was soo simple $to_company = "${$cid}"; still thanks to you guys for the time u gave Edited October 5, 2012 by lovephp Quote Link to comment Share on other sites More sharing options...
Christian F. Posted October 5, 2012 Share Posted October 5, 2012 If you love PHP, why do you abuse it so? (I need no answer on this, but think about it yourself.) More importantly: Listen to what the experts say, and not just skip to what you like. Quote Link to comment Share on other sites More sharing options...
darkfreaks Posted October 5, 2012 Share Posted October 5, 2012 can this be solved and put to a rest OP used an unpreffered method using double double variables and escaped by using curly bracket. instead of using an array to do so. 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.