blueman378 Posted December 25, 2007 Share Posted December 25, 2007 hi guys, as the title says im to tired to think really but heres my problem $a = hello; echo $ad; thats effectively what i have what result im trying to get it hellod, so how do i do it ah gotta love 39 hours work over 3 days when your meant to be part time... Quote Link to comment https://forums.phpfreaks.com/topic/83122-solved-simple-echo-stuff-just-too-tired/ Share on other sites More sharing options...
PHP_PhREEEk Posted December 25, 2007 Share Posted December 25, 2007 <?php $a = 'hello'; echo "{$a}d"; PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/83122-solved-simple-echo-stuff-just-too-tired/#findComment-422802 Share on other sites More sharing options...
blueman378 Posted December 25, 2007 Author Share Posted December 25, 2007 that doesnt work because it looks for a variable ad, i know this is the problem because if i have $a d i get hello d Quote Link to comment https://forums.phpfreaks.com/topic/83122-solved-simple-echo-stuff-just-too-tired/#findComment-422803 Share on other sites More sharing options...
PHP_PhREEEk Posted December 25, 2007 Share Posted December 25, 2007 See revised... PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/83122-solved-simple-echo-stuff-just-too-tired/#findComment-422804 Share on other sites More sharing options...
blueman378 Posted December 25, 2007 Author Share Posted December 25, 2007 thanks Quote Link to comment https://forums.phpfreaks.com/topic/83122-solved-simple-echo-stuff-just-too-tired/#findComment-422805 Share on other sites More sharing options...
redarrow Posted December 25, 2007 Share Posted December 25, 2007 or caternation happy xmas <?php $a = 'hello'; $a .='d'; echo $a; ?> Quote Link to comment https://forums.phpfreaks.com/topic/83122-solved-simple-echo-stuff-just-too-tired/#findComment-422806 Share on other sites More sharing options...
redarrow Posted December 25, 2007 Share Posted December 25, 2007 and what about this then with array lol <?php $b=array('a','b','c','d'); shuffle($b); foreach($b as $x){ $a = 'hello'; $a .=$x; } echo $a; ?> Quote Link to comment https://forums.phpfreaks.com/topic/83122-solved-simple-echo-stuff-just-too-tired/#findComment-422808 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.