spires Posted March 2, 2009 Share Posted March 2, 2009 Hi Guys I can't seem to insert \n Instead my code is echoing out \n rather than creating a line break. echo 'array( Name => "'.$list_explode2['0'].'", Email => "'.$list_explode2['1'].'"),\n'; Any ideas? Thanks Link to comment https://forums.phpfreaks.com/topic/147647-solved-n-help/ Share on other sites More sharing options...
premiso Posted March 2, 2009 Share Posted March 2, 2009 echo 'array( Name => "'.$list_explode2['0'].'", Email => "'.$list_explode2['1'].'"),' . "\n"; You need to use double quotes around characters like that for them to display right, the ' takes them literally. The " actually displays the character. Link to comment https://forums.phpfreaks.com/topic/147647-solved-n-help/#findComment-775095 Share on other sites More sharing options...
spires Posted March 2, 2009 Author Share Posted March 2, 2009 Thats Excellent, Thanks Link to comment https://forums.phpfreaks.com/topic/147647-solved-n-help/#findComment-775098 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.