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. Link to comment https://forums.phpfreaks.com/topic/269131-hlp-adding-a-to-string/page/2/#findComment-1383051 Share on other sites More sharing options...
Maq Posted October 5, 2012 Share Posted October 5, 2012 EDIT: Too late ... Link to comment https://forums.phpfreaks.com/topic/269131-hlp-adding-a-to-string/page/2/#findComment-1383066 Share on other sites More sharing options...
lovephp Posted October 5, 2012 Author Share Posted October 5, 2012 i got it and it was soo simple $to_company = "${$cid}"; still thanks to you guys for the time u gave Link to comment https://forums.phpfreaks.com/topic/269131-hlp-adding-a-to-string/page/2/#findComment-1383084 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. Link to comment https://forums.phpfreaks.com/topic/269131-hlp-adding-a-to-string/page/2/#findComment-1383092 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. Link to comment https://forums.phpfreaks.com/topic/269131-hlp-adding-a-to-string/page/2/#findComment-1383093 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.