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... 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 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 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 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 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; ?> 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; ?> 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
Archived
This topic is now archived and is closed to further replies.