m1key Posted May 21, 2009 Share Posted May 21, 2009 Hi, The following works: $output = $siteID; $output .= ","; $output .= $siteVersion; $output .= "\n"; However, it feels like there should be an easier (nicer?) way to do this. Any tips? Link to comment https://forums.phpfreaks.com/topic/159070-solved-merge-the-following-code-into-one-line/ Share on other sites More sharing options...
madspof Posted May 21, 2009 Share Posted May 21, 2009 you could do this $output = $siteID . "," . $siteVersion . "\n"; i think lol Link to comment https://forums.phpfreaks.com/topic/159070-solved-merge-the-following-code-into-one-line/#findComment-838872 Share on other sites More sharing options...
m1key Posted May 21, 2009 Author Share Posted May 21, 2009 Spot on! I was trying to do something similar, but Zend kept complaining. I must have got the syntax slightly wrong before. Cheers. Link to comment https://forums.phpfreaks.com/topic/159070-solved-merge-the-following-code-into-one-line/#findComment-838878 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.